org.eclipse.gmf.graphdef.editor.part
Class GMFGraphDiagramEditorPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by org.eclipse.gmf.graphdef.editor.part.GMFGraphDiagramEditorPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class GMFGraphDiagramEditorPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin

Generated

Field Summary
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
GMFGraphDiagramEditorPlugin()
           
 
Method Summary
protected  org.eclipse.emf.edit.provider.ComposedAdapterFactory createAdapterFactory()
           
protected  void fillItemProviderFactories(List factories)
           
static org.eclipse.jface.resource.ImageDescriptor findImageDescriptor(String path)
          Respects images residing in any plug-in.
 org.eclipse.swt.graphics.Image getBundledImage(String path)
          Returns an image for the image file at the given plug-in relative path.
static org.eclipse.jface.resource.ImageDescriptor getBundledImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 GMFGraphDocumentProvider getDocumentProvider()
           
static GMFGraphDiagramEditorPlugin getInstance()
           
 org.eclipse.jface.resource.ImageDescriptor getItemImageDescriptor(Object item)
           
 org.eclipse.emf.common.notify.AdapterFactory getItemProvidersAdapterFactory()
           
static String getString(String key)
          Returns string from plug-in's resource bundle
 void logError(String error)
           
 void logError(String error, Throwable throwable)
           
 void logInfo(String message)
           
 void logInfo(String message, Throwable throwable)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Generated

DIAGRAM_PREFERENCES_HINT

public static final org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint DIAGRAM_PREFERENCES_HINT
Generated
Constructor Detail

GMFGraphDiagramEditorPlugin

public GMFGraphDiagramEditorPlugin()
Generated
Method Detail

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
Generated

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
Generated

getInstance

public static GMFGraphDiagramEditorPlugin getInstance()
Generated

createAdapterFactory

protected org.eclipse.emf.edit.provider.ComposedAdapterFactory createAdapterFactory()
Generated

fillItemProviderFactories

protected void fillItemProviderFactories(List factories)
Generated

getItemProvidersAdapterFactory

public org.eclipse.emf.common.notify.AdapterFactory getItemProvidersAdapterFactory()
Generated

getItemImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getItemImageDescriptor(Object item)
Generated

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
Generated

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
Generated

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
Generated

getString

public static String getString(String key)
Returns string from plug-in's resource bundle

Generated

getDocumentProvider

public GMFGraphDocumentProvider getDocumentProvider()
Generated

logError

public void logError(String error)
Generated

logError

public void logError(String error,
                     Throwable throwable)
Generated

logInfo

public void logInfo(String message)
Generated

logInfo

public void logInfo(String message,
                    Throwable throwable)
Generated


Copyright © 2012. All Rights Reserved.