public class EclipsePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
Constructor and Description |
---|
EclipsePlugin()
Construct a plugin object.
|
Modifier and Type | Method and Description |
---|---|
ptolemy.backtrack.eclipse.plugin.console.OutputConsole |
getConsole()
Return the console for this plugin.
|
static EclipsePlugin |
getDefault()
Return the only instance of this plugin.
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(java.lang.String path)
Return an image descriptor for the image file at the given plugin
relative path.
|
java.util.ResourceBundle |
getResourceBundle()
Return the plugin's resource bundle.
|
static java.lang.String |
getResourceString(java.lang.String key)
Return the string from the plugin's resource bundle, or the key itself
if not found.
|
static org.eclipse.swt.widgets.Display |
getStandardDisplay()
Return the current Eclipse process's standard display.
|
void |
start(org.osgi.framework.BundleContext context)
Start the plugin.
|
void |
stop(org.osgi.framework.BundleContext context)
Stop the plugin.
|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
public EclipsePlugin()
public ptolemy.backtrack.eclipse.plugin.console.OutputConsole getConsole()
public static EclipsePlugin getDefault()
public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor(java.lang.String path)
path
- The path to the image descriptor.public java.util.ResourceBundle getResourceBundle()
public static java.lang.String getResourceString(java.lang.String key)
key
- The key of the resource string.public static org.eclipse.swt.widgets.Display getStandardDisplay()
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
context
- The context where this plugin is started.java.lang.Exception
- If the start method of the superclass throws an
Exception.public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
context
- The context where this plugin has been started.java.lang.Exception
- If the stop method of the superclass throws an
Exception.