GEF v2.0

org.eclipse.gef
Class GEFPlugin

java.lang.Object
  |
  +--org.eclipse.core.runtime.Plugin
        |
        +--org.eclipse.gef.GEFPlugin
All Implemented Interfaces:
SharedImageConstants

public final class GEFPlugin
extends Plugin
implements SharedImageConstants

Provides shared Images and ImageDescriptors.

See Also:
SharedImageConstants, getImage(String), getImageDescriptor(String)

Fields inherited from class org.eclipse.core.runtime.Plugin
PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
 
Fields inherited from interface org.eclipse.gef.SharedImageConstants
ICON_TOOL_ARROW_16, ICON_TOOL_ARROW_32, ICON_TOOL_MARQUEE_16
 
Constructor Summary
GEFPlugin(IPluginDescriptor descriptor)
          Creates the singleton instance of the GEF plugin.
 
Method Summary
static IPropertySheetEntry createUndoablePropertySheetEntry(CommandStack stack)
          Create a root undoable property sheet entry.
static GEFPlugin getDefault()
          Gets the plugin singleton.
static Image getImage(String imageName)
          Returns the Image as defined in SharedImageConstants.
static ImageDescriptor getImageDescriptor(String imageName)
          Returns an ImageDescriptor as defined in SharedImageConstants.
 
Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getDescriptor, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GEFPlugin

public GEFPlugin(IPluginDescriptor descriptor)
Creates the singleton instance of the GEF plugin.
Method Detail

getDefault

public static GEFPlugin getDefault()
Gets the plugin singleton.
Returns:
the default GEFPlugin singleton

getImage

public static Image getImage(String imageName)
Returns the Image as defined in SharedImageConstants. Only constants starting with ICON are available as Images.

getImageDescriptor

public static ImageDescriptor getImageDescriptor(String imageName)
Returns an ImageDescriptor as defined in SharedImageConstants. Only constants starting with DESC are available as descriptors.

createUndoablePropertySheetEntry

public static IPropertySheetEntry createUndoablePropertySheetEntry(CommandStack stack)
Create a root undoable property sheet entry.

GEF v2.0