public class Activator extends AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
static String |
DEBUG_LOCALFILE |
static String |
DEBUG_READS |
static String |
DEBUG_SERVICE |
static String |
DEBUG_STREAMS |
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 |
---|---|
LinkedHashMap<Pattern,String> |
getContentTypeExtensionMap()
The public interface to the mapping between content types (as specified
in the TextGrid Metadata contentType element) and the file extensions used
internally to facilitate the selection of appropriate editors.
|
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) |
IStatus |
handleProblem(Throwable e) |
static boolean |
isDebugging(String option)
Are we debugging with the given 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_LOCALFILE
public static final String DEBUG_READS
public static final String DEBUG_STREAMS
public void start(org.osgi.framework.BundleContext context) throws Exception
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
Exception
public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public static Activator getDefault()
public static void logServiceCall(String msg, Object... args)
msg
- args
- public static boolean isDebugging(String option)
option
- 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 LinkedHashMap<Pattern,String> getContentTypeExtensionMap()