public class Activator
extends org.eclipse.ui.plugin.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 |
| Constructor and Description |
|---|
Activator() |
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.BundleContext |
getContext() |
static Activator |
getDefault() |
static org.eclipse.swt.graphics.Image |
getImage(java.lang.String bundleID,
java.lang.String path,
boolean storeToImageRegistry) |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Returns an image descriptor for the image file at the given plug-in relative path
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String bundleID,
java.lang.String path) |
static org.eclipse.jface.resource.ImageDescriptor |
getLocalImageDescriptor(java.lang.String iconPath) |
static org.eclipse.swt.graphics.Image |
getLocalPluginIconImage(java.lang.String iconPath) |
static org.eclipse.swt.graphics.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, startuppublic 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 org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exceptionpublic void stop(org.osgi.framework.BundleContext context)
throws java.lang.Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginjava.lang.Exceptionpublic org.osgi.framework.BundleContext getContext()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path - the pathpublic static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String bundleID,
java.lang.String path)
public static org.eclipse.swt.graphics.Image getImage(java.lang.String bundleID,
java.lang.String path,
boolean storeToImageRegistry)
public static org.eclipse.swt.graphics.Image getPluginIconImage(java.lang.String pluginId,
java.lang.String iconPath)
org.eclipse.swt.graphics.Image identified by its pluginId and iconPath.public static org.eclipse.swt.graphics.Image getLocalPluginIconImage(java.lang.String iconPath)
public static org.eclipse.jface.resource.ImageDescriptor getLocalImageDescriptor(java.lang.String iconPath)
public static java.io.InputStream getResource(java.lang.String path)