public final class Activator
extends org.eclipse.ui.plugin.AbstractUIPlugin
| Constructor and Description |
|---|
Activator()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.Image |
getImage(String path)
Gets an
Image for a path. |
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String path)
Returns an
ImageDescriptor for a path. |
static Activator |
getInstance()
Returns the shared instance.
|
static org.eclipse.core.runtime.IStatus |
getStatus(Throwable t)
Gets a
IStatus for a throwable. |
static void |
log(org.eclipse.core.runtime.IStatus status)
Logs
IStatus. |
static void |
log(String message)
Logs messages.
|
static String |
log(Throwable t)
Logs
Throwable. |
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startuppublic static final String PLUGIN_ID
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorstart in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.ui.plugin.AbstractUIPluginExceptionpublic static Activator getInstance()
public static void log(String message)
message - the messagepublic static void log(org.eclipse.core.runtime.IStatus status)
IStatus.status - the IStatuspublic static String log(Throwable t)
Throwable.t - the Throwablepublic static org.eclipse.core.runtime.IStatus getStatus(Throwable t)
IStatus for a throwable.t - the ThrowableIStatuspublic static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(String path)
ImageDescriptor for a path.path - the path to an imageImageDescriptorpublic static org.eclipse.swt.graphics.Image getImage(String path)
Image for a path.path - the path to an imageCopyright © 2016. All rights reserved.