public class CommonPlugin extends Plugin
Modifier and Type | Field and Description |
---|---|
static String |
ID |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
CommonPlugin()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static IStatus |
createStatus(int severity,
String message,
Throwable throwable) |
static CommonPlugin |
getDefault()
Returns the shared instance.
|
ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle,
|
static String |
getResourceString(String key)
Returns the string from the plugin's resource bundle,
or 'key' if not found.
|
static String |
getResourceString(String key,
Object[] substitutions) |
static void |
log(IStatus status) |
static void |
log(Throwable e) |
void |
start(org.osgi.framework.BundleContext context)
This method is called upon plug-in activation
|
void |
stop(org.osgi.framework.BundleContext context)
This method is called when the plug-in is stopped
|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
public static final String ID
public void start(org.osgi.framework.BundleContext context) throws Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
public static CommonPlugin getDefault()
public static String getResourceString(String key)
public ResourceBundle getResourceBundle()
public static void log(IStatus status)
public static void log(Throwable e)
Copyright © 2008, 2018 Borland Software Corporation and others. All Rights Reserved.