org.eclipse.gmf.graphdef.editor.part
Class GMFGraphDiagramEditorPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.gmf.graphdef.editor.part.GMFGraphDiagramEditorPlugin
- All Implemented Interfaces:
- org.osgi.framework.BundleActivator
public class GMFGraphDiagramEditorPlugin
- extends org.eclipse.ui.plugin.AbstractUIPlugin
| Fields inherited from class org.eclipse.core.runtime.Plugin |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
| 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, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
ID
public static final String ID
- See Also:
- Constant Field Values
DIAGRAM_PREFERENCES_HINT
public static final org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint DIAGRAM_PREFERENCES_HINT
GMFGraphDiagramEditorPlugin
public GMFGraphDiagramEditorPlugin()
start
public void start(org.osgi.framework.BundleContext context)
throws Exception
- Specified by:
start in interface org.osgi.framework.BundleActivator- Overrides:
start in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
stop
public void stop(org.osgi.framework.BundleContext context)
throws Exception
- Specified by:
stop in interface org.osgi.framework.BundleActivator- Overrides:
stop in class org.eclipse.ui.plugin.AbstractUIPlugin
- Throws:
Exception
getInstance
public static GMFGraphDiagramEditorPlugin getInstance()
createAdapterFactory
protected org.eclipse.emf.edit.provider.ComposedAdapterFactory createAdapterFactory()
fillItemProviderFactories
protected void fillItemProviderFactories(List factories)
getItemProvidersAdapterFactory
public org.eclipse.emf.common.notify.AdapterFactory getItemProvidersAdapterFactory()
getItemImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getItemImageDescriptor(Object item)
getBundledImageDescriptor
public static org.eclipse.jface.resource.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
findImageDescriptor
public static org.eclipse.jface.resource.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
getBundledImage
public org.eclipse.swt.graphics.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
getString
public static String getString(String key)
- Returns string from plug-in's resource bundle
getDocumentProvider
public GMFGraphDocumentProvider getDocumentProvider()
logError
public void logError(String error)
logError
public void logError(String error,
Throwable throwable)
logInfo
public void logInfo(String message)
logInfo
public void logInfo(String message,
Throwable throwable)
Copyright © 2011. All Rights Reserved.