Package de.uni_hildesheim.sse.ui
Class Activator
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- org.eclipse.ui.plugin.AbstractUIPlugin
-
- de.uni_hildesheim.sse.ui.internal.IvmlActivator
-
- de.uni_hildesheim.sse.ui.Activator
-
- All Implemented Interfaces:
EditorEmbedderFactory.IEditorCreator,ModelEditorConfigurer.IModelEditorConfigurer,org.osgi.framework.BundleActivator
- Direct Known Subclasses:
StandaloneActivator
public class Activator extends de.uni_hildesheim.sse.ui.internal.IvmlActivator implements EditorEmbedderFactory.IEditorCreator, ModelEditorConfigurer.IModelEditorConfigurer
Extends the generated activator.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelEditorConfigurer.IHeadercreateHeader(org.eclipse.swt.widgets.Composite parent, Configuration config, java.io.File base, ModelInfo<?> info)Creates the actual header.IEmbeddedEditorembedEditor(java.net.URI resourceURI, org.eclipse.swt.widgets.Composite composite)Embeds an editor handling the givenresourceURI.java.lang.StringgetEditorTitle(boolean editable)Returns the editor title.java.lang.StringgetExtension()Returns the file extension to configure fore.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(java.lang.String path)Returns an image descriptor for the image file at the given plug-in relative pathAbstractModelChangeListenergetModelChangeListener()Returns the model change listener, e.g., to rebuild the related model on save.intgetOrdinal()Returns an ordinal for sorting model configurers for displying them.java.lang.StringgetPageTitle(boolean editable)Returns the page title.booleanhasHeader()Returns whether the described editor shall have a header.voidstart(org.osgi.framework.BundleContext context)voidstop(org.osgi.framework.BundleContext context)-
Methods inherited from class de.uni_hildesheim.sse.ui.internal.IvmlActivator
createInjector, getInjector, getInstance, getRuntimeModule, getSharedStateModule, getUiModule
-
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
-
-
-
-
Field Detail
-
PLUGIN_ID
public static final java.lang.String PLUGIN_ID
- See Also:
- Constant Field Values
-
EXTENSION
public static final java.lang.String EXTENSION
-
-
Method Detail
-
getImageDescriptor
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path- Parameters:
path- the path- Returns:
- the image descriptor
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classde.uni_hildesheim.sse.ui.internal.IvmlActivator- Throws:
java.lang.Exception
-
stop
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classde.uni_hildesheim.sse.ui.internal.IvmlActivator- Throws:
java.lang.Exception
-
embedEditor
public IEmbeddedEditor embedEditor(java.net.URI resourceURI, org.eclipse.swt.widgets.Composite composite)
Description copied from interface:EditorEmbedderFactory.IEditorCreatorEmbeds an editor handling the givenresourceURI.- Specified by:
embedEditorin interfaceEditorEmbedderFactory.IEditorCreator- Parameters:
resourceURI- the URI to be handledcomposite- the parent composite to embed the editor into- Returns:
- the embedded editor (or null if embedding failed for some reason)
-
getEditorTitle
public java.lang.String getEditorTitle(boolean editable)
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns the editor title.- Specified by:
getEditorTitlein interfaceModelEditorConfigurer.IModelEditorConfigurer- Parameters:
editable- whether the editor is editable- Returns:
- the editor title
-
getPageTitle
public java.lang.String getPageTitle(boolean editable)
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns the page title.- Specified by:
getPageTitlein interfaceModelEditorConfigurer.IModelEditorConfigurer- Parameters:
editable- whether the editor is editable- Returns:
- the page title
-
getExtension
public java.lang.String getExtension()
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns the file extension to configure fore.- Specified by:
getExtensionin interfaceModelEditorConfigurer.IModelEditorConfigurer- Returns:
- the file extension
-
getOrdinal
public int getOrdinal()
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns an ordinal for sorting model configurers for displying them.- Specified by:
getOrdinalin interfaceModelEditorConfigurer.IModelEditorConfigurer- Returns:
- the ordinal
-
hasHeader
public boolean hasHeader()
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns whether the described editor shall have a header.- Specified by:
hasHeaderin interfaceModelEditorConfigurer.IModelEditorConfigurer- Returns:
trueif it shall have a header,falseelse
-
createHeader
public ModelEditorConfigurer.IHeader createHeader(org.eclipse.swt.widgets.Composite parent, Configuration config, java.io.File base, ModelInfo<?> info)
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerCreates the actual header.- Specified by:
createHeaderin interfaceModelEditorConfigurer.IModelEditorConfigurer- Parameters:
parent- the parent compositeconfig- the recent product line configurationbase- the basic directory of the project we are working ininfo- the actual model being displayed- Returns:
- the header instance
-
getModelChangeListener
public AbstractModelChangeListener getModelChangeListener()
Description copied from interface:ModelEditorConfigurer.IModelEditorConfigurerReturns the model change listener, e.g., to rebuild the related model on save.- Specified by:
getModelChangeListenerin interfaceModelEditorConfigurer.IModelEditorConfigurer- Returns:
- the model change listener or null for none
-
-