public class Activator extends de.uni_hildesheim.sse.ui.internal.IvmlActivator implements EditorEmbedderFactory.IEditorCreator, ModelEditorConfigurer.IModelEditorConfigurer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXTENSION |
static java.lang.String |
PLUGIN_ID |
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
ModelEditorConfigurer.IHeader |
createHeader(org.eclipse.swt.widgets.Composite parent,
Configuration config,
java.io.File base,
ModelInfo<?> info)
Creates the actual header.
|
IEmbeddedEditor |
embedEditor(java.net.URI resourceURI,
org.eclipse.swt.widgets.Composite composite)
Embeds an editor handling the given
resourceURI. |
java.lang.String |
getEditorTitle(boolean editable)
Returns the editor title.
|
java.lang.String |
getExtension()
Returns the file extension to configure fore.
|
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
|
AbstractModelChangeListener |
getModelChangeListener()
Returns the model change listener, e.g., to rebuild the related model on save.
|
int |
getOrdinal()
Returns an ordinal for sorting model configurers for displying them.
|
java.lang.String |
getPageTitle(boolean editable)
Returns the page title.
|
boolean |
hasHeader()
Returns whether the described editor shall have a header.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
createInjector, getInjector, getInstance, getRuntimeModule, getSharedStateModule, getUiModulecreateImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startuppublic static final java.lang.String PLUGIN_ID
public static final java.lang.String EXTENSION
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path - the pathpublic void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class de.uni_hildesheim.sse.ui.internal.IvmlActivatorjava.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class de.uni_hildesheim.sse.ui.internal.IvmlActivatorjava.lang.Exceptionpublic IEmbeddedEditor embedEditor(java.net.URI resourceURI, org.eclipse.swt.widgets.Composite composite)
EditorEmbedderFactory.IEditorCreatorresourceURI.embedEditor in interface EditorEmbedderFactory.IEditorCreatorresourceURI - the URI to be handledcomposite - the parent composite to embed the editor intopublic java.lang.String getEditorTitle(boolean editable)
ModelEditorConfigurer.IModelEditorConfigurergetEditorTitle in interface ModelEditorConfigurer.IModelEditorConfigurereditable - whether the editor is editablepublic java.lang.String getPageTitle(boolean editable)
ModelEditorConfigurer.IModelEditorConfigurergetPageTitle in interface ModelEditorConfigurer.IModelEditorConfigurereditable - whether the editor is editablepublic java.lang.String getExtension()
ModelEditorConfigurer.IModelEditorConfigurergetExtension in interface ModelEditorConfigurer.IModelEditorConfigurerpublic int getOrdinal()
ModelEditorConfigurer.IModelEditorConfigurergetOrdinal in interface ModelEditorConfigurer.IModelEditorConfigurerpublic boolean hasHeader()
ModelEditorConfigurer.IModelEditorConfigurerhasHeader in interface ModelEditorConfigurer.IModelEditorConfigurertrue if it shall have a header, false elsepublic ModelEditorConfigurer.IHeader createHeader(org.eclipse.swt.widgets.Composite parent, Configuration config, java.io.File base, ModelInfo<?> info)
ModelEditorConfigurer.IModelEditorConfigurercreateHeader in interface ModelEditorConfigurer.IModelEditorConfigurerparent - the parent compositeconfig - the recent product line configurationbase - the basic directory of the project we are working ininfo - the actual model being displayedpublic AbstractModelChangeListener getModelChangeListener()
ModelEditorConfigurer.IModelEditorConfigurergetModelChangeListener in interface ModelEditorConfigurer.IModelEditorConfigurerCopyright © 2009 - 2018 SSE. All Rights Reserved.