Package org.eclipse.emf.cdo.ui
Class CDOEditorOpener.Default
java.lang.Object
org.eclipse.emf.cdo.ui.CDOEditorOpener.Default
- All Implemented Interfaces:
CDOEditorOpener
- Direct Known Subclasses:
CDOEditorOpener.Registry.EditorOpenerDescriptor
- Enclosing interface:
- CDOEditorOpener
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.ui.CDOEditorOpener
CDOEditorOpener.Default, CDOEditorOpener.Registry
-
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.ui.CDOEditorOpener
DEFAULT_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IEditorPart
doOpenEditor
(IWorkbenchPage page, URI uri) getIcon()
getID()
getName()
final int
Returns the priority of this editor opener.final String
getRegex()
Returns the regular expression that determines if the editor opener can open a certain URI.final boolean
matchesRegex
(URI uri) Checks if the URI matches the regular expression of this editor opener.openEditor
(IWorkbenchPage page, URI uri) toString()
-
Constructor Details
-
Default
public Default() -
Default
-
-
Method Details
-
getID
- Specified by:
getID
in interfaceCDOEditorOpener
-
getName
- Specified by:
getName
in interfaceCDOEditorOpener
-
getIcon
- Specified by:
getIcon
in interfaceCDOEditorOpener
-
getPriority
public final int getPriority()Description copied from interface:CDOEditorOpener
Returns the priority of this editor opener. Usually used to choose between several editor openers that match the same repository URI.- Specified by:
getPriority
in interfaceCDOEditorOpener
-
getRegex
Description copied from interface:CDOEditorOpener
Returns the regular expression that determines if the editor opener can open a certain URI.- Specified by:
getRegex
in interfaceCDOEditorOpener
-
matchesRegex
Description copied from interface:CDOEditorOpener
Checks if the URI matches the regular expression of this editor opener.- Specified by:
matchesRegex
in interfaceCDOEditorOpener
-
openEditor
- Specified by:
openEditor
in interfaceCDOEditorOpener
-
doOpenEditor
-
toString
-