public class Activator extends AbstractUIPlugin
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ICON_FIELD |
static java.lang.String |
ICON_METHOD |
static java.lang.String |
PLUGIN_ID |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.BundleContext |
getContext() |
static Activator |
getDefault() |
static Image |
getImage(java.lang.String bundleID,
java.lang.String path,
boolean storeToImageRegistry) |
static ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path
|
static ImageDescriptor |
getImageDescriptor(java.lang.String bundleID,
java.lang.String path) |
static ImageDescriptor |
getLocalImageDescriptor(java.lang.String iconPath) |
static Image |
getLocalPluginIconImage(java.lang.String iconPath) |
static Image |
getPluginIconImage(java.lang.String pluginId,
java.lang.String iconPath)
This method returns an
org.eclipse.swt.graphics.Image identified by its pluginId and iconPath. |
static java.io.InputStream |
getResource(java.lang.String path) |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startupfind, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toStringpublic static final java.lang.String PLUGIN_ID
public static final java.lang.String ICON_FIELD
public static final java.lang.String ICON_METHOD
public static Activator getDefault()
public void start(org.osgi.framework.BundleContext context)
throws java.lang.Exception
start in interface org.osgi.framework.BundleActivatorstart in class AbstractUIPluginjava.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class AbstractUIPluginjava.lang.Exceptionpublic org.osgi.framework.BundleContext getContext()
public static ImageDescriptor getImageDescriptor(java.lang.String path)
path - the pathpublic static ImageDescriptor getImageDescriptor(java.lang.String bundleID, java.lang.String path)
public static Image getImage(java.lang.String bundleID, java.lang.String path, boolean storeToImageRegistry)
public static Image getPluginIconImage(java.lang.String pluginId, java.lang.String iconPath)
org.eclipse.swt.graphics.Image identified by its pluginId and iconPath.public static Image getLocalPluginIconImage(java.lang.String iconPath)
public static ImageDescriptor getLocalImageDescriptor(java.lang.String iconPath)
public static java.io.InputStream getResource(java.lang.String path)