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
An abstract default
CDOEditorOpener implementation.- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IEditorPartdoOpenEditor(IWorkbenchPage page, URI uri) getIcon()getID()getName()final intReturns the priority of this editor opener.final StringgetRegex()Returns the regular expression that determines if the editor opener can open a certain URI.final booleanmatchesRegex(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:
getIDin interfaceCDOEditorOpener
-
getName
- Specified by:
getNamein interfaceCDOEditorOpener
-
getIcon
- Specified by:
getIconin interfaceCDOEditorOpener
-
getPriority
public final int getPriority()Description copied from interface:CDOEditorOpenerReturns the priority of this editor opener. Usually used to choose between several editor openers that match the same repository URI.- Specified by:
getPriorityin interfaceCDOEditorOpener
-
getRegex
Description copied from interface:CDOEditorOpenerReturns the regular expression that determines if the editor opener can open a certain URI.- Specified by:
getRegexin interfaceCDOEditorOpener
-
matchesRegex
Description copied from interface:CDOEditorOpenerChecks if the URI matches the regular expression of this editor opener.- Specified by:
matchesRegexin interfaceCDOEditorOpener
-
openEditor
- Specified by:
openEditorin interfaceCDOEditorOpener
-
doOpenEditor
-
toString
-