public abstract static class CDOEditorOpener.Default extends Object implements CDOEditorOpener
CDOEditorOpener.Default, CDOEditorOpener.Registry
DEFAULT_PRIORITY
Constructor and Description |
---|
CDOEditorOpener.Default() |
CDOEditorOpener.Default(String id,
String name,
ImageDescriptor icon,
String regex,
int priority) |
Modifier and Type | Method and Description |
---|---|
protected abstract IEditorPart |
doOpenEditor(IWorkbenchPage page,
org.eclipse.emf.common.util.URI uri) |
ImageDescriptor |
getIcon() |
String |
getID() |
String |
getName() |
int |
getPriority()
Returns the priority of this editor opener.
|
String |
getRegex()
Returns the regular expression that determines if the editor opener can open a certain URI.
|
boolean |
matchesRegex(org.eclipse.emf.common.util.URI uri)
Checks if the URI matches the regular expression of this editor opener.
|
IEditorPart |
openEditor(IWorkbenchPage page,
org.eclipse.emf.common.util.URI uri) |
String |
toString() |
public CDOEditorOpener.Default()
public CDOEditorOpener.Default(String id, String name, ImageDescriptor icon, String regex, int priority)
public String getID()
getID
in interface CDOEditorOpener
public String getName()
getName
in interface CDOEditorOpener
public ImageDescriptor getIcon()
getIcon
in interface CDOEditorOpener
public final int getPriority()
CDOEditorOpener
getPriority
in interface CDOEditorOpener
public final String getRegex()
CDOEditorOpener
getRegex
in interface CDOEditorOpener
public final boolean matchesRegex(org.eclipse.emf.common.util.URI uri)
CDOEditorOpener
matchesRegex
in interface CDOEditorOpener
public IEditorPart openEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)
openEditor
in interface CDOEditorOpener
protected abstract IEditorPart doOpenEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.