public class Activator extends AbstractUIPlugin
| Modifier and Type | Field and Description |
|---|---|
static String |
ICON_FIELD |
static String |
ICON_METHOD |
static 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 |
|---|---|
static Activator |
getDefault() |
static Image |
getImage(String bundleID,
String path,
boolean storeToImageRegistry) |
static ImageDescriptor |
getImageDescriptor(String path)
Returns an image descriptor for the image file at the given plug-in relative path
|
static ImageDescriptor |
getImageDescriptor(String bundleID,
String path) |
static ImageDescriptor |
getLocalImageDescriptor(String iconPath) |
static Image |
getLocalPluginIconImage(String iconPath) |
static Image |
getPluginIconImage(String pluginId,
String iconPath)
This method returns an
org.eclipse.swt.graphics.Image identified by its pluginId and iconPath. |
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 String PLUGIN_ID
public static final String ICON_FIELD
public static final String ICON_METHOD
public static Activator getDefault()
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorstart in class AbstractUIPluginExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorstop in class AbstractUIPluginExceptionpublic static ImageDescriptor getImageDescriptor(String path)
path - the pathpublic static ImageDescriptor getImageDescriptor(String bundleID, String path)
public static Image getPluginIconImage(String pluginId, String iconPath)
org.eclipse.swt.graphics.Image identified by its pluginId and iconPath.public static ImageDescriptor getLocalImageDescriptor(String iconPath)