de.cau.cs.kieler.keg.diagram.part
Class GraphsDiagramEditorPlugin

java.lang.Object
  extended by org.eclipse.core.runtime.Plugin
      extended by org.eclipse.ui.plugin.AbstractUIPlugin
          extended by de.cau.cs.kieler.keg.diagram.part.GraphsDiagramEditorPlugin
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class GraphsDiagramEditorPlugin
extends AbstractUIPlugin

Rating red
Generated:
This code was automatically generated.

Field Summary
static 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
GraphsDiagramEditorPlugin()
           
 
Method Summary
protected  ComposedAdapterFactory createAdapterFactory()
           
protected  void fillItemProviderFactories(List<AdapterFactory> factories)
           
static ImageDescriptor findImageDescriptor(String path)
          Respects images residing in any plug-in.
 Image getBundledImage(String path)
          Returns an image for the image file at the given plug-in relative path.
static ImageDescriptor getBundledImageDescriptor(String path)
          Returns an image descriptor for the image file at the given plug-in relative path.
 GraphsDocumentProvider getDocumentProvider()
           
 ElementInitializers getElementInitializers()
           
 GraphsOCLFactory getGraphsOCLFactory()
           
static GraphsDiagramEditorPlugin getInstance()
           
 ImageDescriptor getItemImageDescriptor(Object item)
           
 AdapterFactory getItemProvidersAdapterFactory()
           
 GraphsBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
           
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 setElementInitializers(ElementInitializers i)
           
 void setGraphsOCLFactory(GraphsOCLFactory f)
           
 void setLinkConstraints(GraphsBaseItemSemanticEditPolicy.LinkConstraints lc)
           
 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:
This code was automatically generated.

DIAGRAM_PREFERENCES_HINT

public static final PreferencesHint DIAGRAM_PREFERENCES_HINT
Generated:
This code was automatically generated.
Constructor Detail

GraphsDiagramEditorPlugin

public GraphsDiagramEditorPlugin()
Generated:
This code was automatically 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 AbstractUIPlugin
Throws:
Exception
Generated:
This code was automatically 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 AbstractUIPlugin
Throws:
Exception
Generated:
This code was automatically generated.

getInstance

public static GraphsDiagramEditorPlugin getInstance()
Generated:
This code was automatically generated.

createAdapterFactory

protected ComposedAdapterFactory createAdapterFactory()
Generated:
This code was automatically generated.

fillItemProviderFactories

protected void fillItemProviderFactories(List<AdapterFactory> factories)
Generated:
This code was automatically generated.

getItemProvidersAdapterFactory

public AdapterFactory getItemProvidersAdapterFactory()
Generated:
This code was automatically generated.

getItemImageDescriptor

public ImageDescriptor getItemImageDescriptor(Object item)
Generated:
This code was automatically generated.

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:
This code was automatically generated.

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:
This code was automatically generated.

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:
This code was automatically generated.

getString

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

Generated:
This code was automatically generated.

getDocumentProvider

public GraphsDocumentProvider getDocumentProvider()
Generated:
This code was automatically generated.

getLinkConstraints

public GraphsBaseItemSemanticEditPolicy.LinkConstraints getLinkConstraints()
Generated:
This code was automatically generated.

setLinkConstraints

public void setLinkConstraints(GraphsBaseItemSemanticEditPolicy.LinkConstraints lc)
Generated:
This code was automatically generated.

getElementInitializers

public ElementInitializers getElementInitializers()
Generated:
This code was automatically generated.

setElementInitializers

public void setElementInitializers(ElementInitializers i)
Generated:
This code was automatically generated.

getGraphsOCLFactory

public GraphsOCLFactory getGraphsOCLFactory()
Generated:
This code was automatically generated.

setGraphsOCLFactory

public void setGraphsOCLFactory(GraphsOCLFactory f)
Generated:
This code was automatically generated.

logError

public void logError(String error)
Generated:
This code was automatically generated.

logError

public void logError(String error,
                     Throwable throwable)
Generated:
This code was automatically generated.

logInfo

public void logInfo(String message)
Generated:
This code was automatically generated.

logInfo

public void logInfo(String message,
                    Throwable throwable)
Generated:
This code was automatically generated.