Class EMFProfileDiagramEditorPlugin
- java.lang.Object
-
- org.eclipse.core.runtime.Plugin
-
- org.eclipse.ui.plugin.AbstractUIPlugin
-
- org.modelversioning.emfprofile.diagram.part.EMFProfileDiagramEditorPlugin
-
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
public class EMFProfileDiagramEditorPlugin extends AbstractUIPlugin
- Generated class or method.
-
-
Field Summary
Fields Modifier and Type Field Description static org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint
DIAGRAM_PREFERENCES_HINT
static String
ID
-
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
-
-
Constructor Summary
Constructors Constructor Description EMFProfileDiagramEditorPlugin()
-
Method Summary
-
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
-
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
- Generated class or method.
-
DIAGRAM_PREFERENCES_HINT
public static final org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint DIAGRAM_PREFERENCES_HINT
- Generated class or method.
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classAbstractUIPlugin
- Throws:
Exception
- Generated class or method.
-
stop
public void stop(org.osgi.framework.BundleContext context) throws Exception
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classAbstractUIPlugin
- Throws:
Exception
- Generated class or method.
-
getInstance
public static EMFProfileDiagramEditorPlugin getInstance()
- Generated class or method.
-
createAdapterFactory
protected ComposedAdapterFactory createAdapterFactory()
- Generated class or method.
-
fillItemProviderFactories
protected void fillItemProviderFactories(List<AdapterFactory> factories)
- Generated class or method.
-
getItemProvidersAdapterFactory
public AdapterFactory getItemProvidersAdapterFactory()
- Generated class or method.
-
getItemImageDescriptor
public ImageDescriptor getItemImageDescriptor(Object item)
- Generated class or method.
-
getBundledImageDescriptor
public static ImageDescriptor getBundledImageDescriptor(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
- Generated class or method.
-
findImageDescriptor
public static ImageDescriptor findImageDescriptor(String path)
Respects images residing in any plug-in. If path is relative, then this bundle is looked up for the image, otherwise, for absolute path, first segment is taken as id of plug-in with image- Parameters:
path
- the path to image, either absolute (with plug-in id as first segment), or relative for bundled images- Returns:
- the image descriptor
- Generated class or method.
-
getBundledImage
public Image getBundledImage(String path)
Returns an image for the image file at the given plug-in relative path. Client do not need to dispose this image. Images will be disposed automatically.- Parameters:
path
- the path- Returns:
- image instance
- Generated class or method.
-
getString
public static String getString(String key)
Returns string from plug-in's resource bundle- Generated class or method.
-
getDocumentProvider
public EMFProfileDocumentProvider getDocumentProvider()
- Generated class or method.
-
getLinkConstraints
public EMFProfileBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
- Generated class or method.
-
setLinkConstraints
public void setLinkConstraints(EMFProfileBaseItemSemanticEditPolicy.LinkConstraints lc)
- Generated class or method.
-
getElementInitializers
public ElementInitializers getElementInitializers()
- Generated class or method.
-
setElementInitializers
public void setElementInitializers(ElementInitializers i)
- Generated class or method.
-
getEMFProfileOCLFactory
public EMFProfileOCLFactory getEMFProfileOCLFactory()
- Generated class or method.
-
setEMFProfileOCLFactory
public void setEMFProfileOCLFactory(EMFProfileOCLFactory f)
- Generated class or method.
-
logError
public void logError(String error)
- Generated class or method.
-
logInfo
public void logInfo(String message)
- Generated class or method.
-
-