public class Activator
extends org.eclipse.core.runtime.Plugin
| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_ID
The plug-in ID.
|
| Constructor and Description |
|---|
Activator()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Activator |
getDefault()
Returns the shared instance.
|
void |
log(String message,
Exception exception,
int statusInt)
Log an error.
|
void |
logException(String message,
Exception exception)
Log an exception to the error log.
|
void |
logWarning(String message,
Exception exception)
Log a warning to the error log.
|
void |
start(org.osgi.framework.BundleContext context) |
void |
stop(org.osgi.framework.BundleContext context) |
public 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.core.runtime.PluginExceptionPlugin.start(org.osgi.framework.BundleContext)public void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorstop in class org.eclipse.core.runtime.PluginExceptionPlugin.stop(org.osgi.framework.BundleContext)public static Activator getDefault()
public void log(String message, Exception exception, int statusInt)
message - the messageexception - the causing exceptionstatusInt - a status codepublic void logException(String message, Exception exception)
message - the messageexception - the exceptionCopyright © 2017. All rights reserved.