public class Activator extends AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
static String |
DEBUG_INCOMPLETE |
static String |
DEBUG_INCOMPLETE_VERBOSE |
static String |
DEBUG_METADATA |
static String |
DEBUG_METADATA_URI |
static String |
DEBUG_READS |
static String |
DEBUG_SERVICE |
static String |
DEBUG_UITHREAD |
static String |
PLUGIN_ID |
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
Activator()
The constructor
|
Modifier and Type | Method and Description |
---|---|
static Activator |
getDefault()
Returns the shared instance
|
static IStatus |
handleError(Throwable cause,
String message,
Object... args)
Cares for the given error.
|
IStatus |
handleProblem(int severity,
String message,
Throwable cause) |
static IStatus |
handleProblem(int severity,
Throwable cause,
String message,
Object... args)
Cares for the given problem.
|
IStatus |
handleProblem(Throwable e) |
static boolean |
isDebugging(String option) |
static void |
logServiceCall(String msg,
Object... args)
If the debugging option for services is set, write arguments to standard
output.
|
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, startup
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public static final String PLUGIN_ID
public static final String DEBUG_SERVICE
public static final String DEBUG_INCOMPLETE
public static final String DEBUG_INCOMPLETE_VERBOSE
public static final String DEBUG_READS
public static final String DEBUG_UITHREAD
public static final String DEBUG_METADATA
public static final String DEBUG_METADATA_URI
public static void logServiceCall(String msg, Object... args)
msg
- args
- public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public static boolean isDebugging(String option)
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public static IStatus handleError(Throwable cause, String message, Object... args)
NLS.bind(String, Object[])
and the complete
argument list to handleProblem(int, String, Throwable)
.cause
- The exception that caused the problem (or null)message
- The message, use {0}, {1} ... for argumentsargs
- Exactly as many arguments as referenced in the messageIStatus
object created while handling the errorpublic static IStatus handleProblem(int severity, Throwable cause, String message, Object... args)
NLS.bind(String, Object[])
and the
complete argument list to handleProblem(int, String, Throwable)
.severity
- One of the severity constants defined in IStatus
.
Currently, IStatus.ERROR will pop up an error dialogue.cause
- The exception that caused the problem (or null)message
- The message, use {0}, {1} ... for argumentsargs
- Exactly as many arguments as referenced in the messageIStatus
object created while handling the errorpublic static Activator getDefault()