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
public abstract static class CDOEditorOpener.Default extends java.lang.Object implements 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
Constructors Constructor Description Default()Default(java.lang.String id, java.lang.String name, ImageDescriptor icon, java.lang.String regex, int priority)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IEditorPartdoOpenEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)ImageDescriptorgetIcon()java.lang.StringgetID()java.lang.StringgetName()intgetPriority()Returns the priority of this editor opener.java.lang.StringgetRegex()Returns the regular expression that determines if the editor opener can open a certain URI.booleanmatchesRegex(org.eclipse.emf.common.util.URI uri)Checks if the URI matches the regular expression of this editor opener.IEditorPartopenEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Default
public Default()
-
Default
public Default(java.lang.String id, java.lang.String name, ImageDescriptor icon, java.lang.String regex, int priority)
-
-
Method Detail
-
getID
public java.lang.String getID()
- Specified by:
getIDin interfaceCDOEditorOpener
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceCDOEditorOpener
-
getIcon
public ImageDescriptor 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
public final java.lang.String 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
public final boolean matchesRegex(org.eclipse.emf.common.util.URI uri)
Description copied from interface:CDOEditorOpenerChecks if the URI matches the regular expression of this editor opener.- Specified by:
matchesRegexin interfaceCDOEditorOpener
-
openEditor
public IEditorPart openEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)
- Specified by:
openEditorin interfaceCDOEditorOpener
-
doOpenEditor
protected abstract IEditorPart doOpenEditor(IWorkbenchPage page, org.eclipse.emf.common.util.URI uri)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-