Class ExternalEditor
- java.lang.Object
-
- net.ssehub.easy.producer.ui.core.contributions.ExternalEditor
-
public abstract class ExternalEditor extends java.lang.ObjectEnables to plug in external editors.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<ExternalEditor>REGISTERED
-
Constructor Summary
Constructors Constructor Description ExternalEditor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static booleanembedEditor(java.net.URI uri, org.eclipse.swt.widgets.Composite parent)Embeds an editor for the givenuriinto the givenparent.protected abstract booleanembedEditorImpl(java.net.URI uri, org.eclipse.swt.widgets.Composite parent)Embeds this editor for the givenuriinto the givenparent.static booleanprovidesEditorFor(java.net.URI uri)Returns whether any editor plugin provides an editor for the givenuri.protected abstract booleanprovidesEditorForImpl(java.net.URI uri)Returns whether this editor plugin provides an editor for the givenuri.static voidregister(ExternalEditor editor)Registers the external editor plugin.static voidunregister(ExternalEditor editor)Unregisters the external editor plugin.
-
-
-
Field Detail
-
REGISTERED
private static final java.util.List<ExternalEditor> REGISTERED
-
-
Method Detail
-
embedEditorImpl
protected abstract boolean embedEditorImpl(java.net.URI uri, org.eclipse.swt.widgets.Composite parent)Embeds this editor for the givenuriinto the givenparent.- Parameters:
uri- the URI representing the resource to be readparent- the parent composite- Returns:
trueif this editor was embedded,falseelse
-
providesEditorForImpl
protected abstract boolean providesEditorForImpl(java.net.URI uri)
Returns whether this editor plugin provides an editor for the givenuri.- Parameters:
uri- the URI representing the resource to be read- Returns:
trueif an editor can be provided,falseelse
-
register
public static void register(ExternalEditor editor)
Registers the external editor plugin.- Parameters:
editor- the plugin to be unregistered
-
unregister
public static void unregister(ExternalEditor editor)
Unregisters the external editor plugin.- Parameters:
editor- the plugin to be unregistered
-
embedEditor
public static boolean embedEditor(java.net.URI uri, org.eclipse.swt.widgets.Composite parent)Embeds an editor for the givenuriinto the givenparent.- Parameters:
uri- the URI representing the resource to be readparent- the parent composite- Returns:
trueif an editor was embedded,falseelse
-
providesEditorFor
public static boolean providesEditorFor(java.net.URI uri)
Returns whether any editor plugin provides an editor for the givenuri.- Parameters:
uri- the URI representing the resource to be read- Returns:
trueif an editor can be provided,falseelse
-
-