public class PluginSupportPlugin
extends org.eclipse.core.runtime.Plugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AADL_CONTRIBUTION_EXTENSION_ID |
static java.lang.String |
PLUGIN_ID |
static java.lang.String |
PROPERTY_CONTRIBUTOR_EXTENSION_ID |
Constructor and Description |
---|
PluginSupportPlugin()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.core.runtime.IStatus |
createStatus(int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
Create a status object representing the specified information.
|
static PluginSupportPlugin |
getDefault()
Returns the shared instance.
|
static java.lang.String |
getPluginId() |
static void |
log(int severity,
int code,
java.lang.String message,
java.lang.Throwable exception)
Log the specified information.
|
static void |
log(org.eclipse.core.runtime.IStatus status)
Log the given status.
|
static void |
logError(java.lang.String message,
java.lang.Throwable exception)
Log the specified error.
|
static void |
logError(java.lang.Throwable exception)
Log the specified error.
|
static void |
logInfo(java.lang.String message)
Log the specified information.
|
static void |
logWarning(java.lang.String message)
Log the specified warning.
|
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
|
public static final java.lang.String PLUGIN_ID
public static final java.lang.String PROPERTY_CONTRIBUTOR_EXTENSION_ID
public static final java.lang.String AADL_CONTRIBUTION_EXTENSION_ID
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
java.lang.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.core.runtime.Plugin
java.lang.Exception
public static PluginSupportPlugin getDefault()
public static java.lang.String getPluginId()
public static void logInfo(java.lang.String message)
message
- a log message.public static void logWarning(java.lang.String message)
message
- a log message.public static void logError(java.lang.Throwable exception)
exception
- - an expeption.public static void logError(java.lang.String message, java.lang.Throwable exception)
message
- a messageexception
- the exceptionpublic static void log(int severity, int code, java.lang.String message, java.lang.Throwable exception)
severity
- the severity; one of the following: IStatus.OK
,
IStatus.ERROR
,IStatus.INFO
,
or IStatus.WARNING
.code
- the plug-in-specific status code, or OK
.message
- a human-readable message, localized to the current locale.exception
- a low-level exception, or null
if not
applicable.public static org.eclipse.core.runtime.IStatus createStatus(int severity, int code, java.lang.String message, java.lang.Throwable exception)
severity
- the severity; one of the following: IStatus.OK
,
IStatus.ERROR
,IStatus.INFO
,
or IStatus.WARNING
.code
- the plug-in-specific status code, or OK
.message
- a human-readable message, localized to the current locale.exception
- a low-level exception, or null
if not
applicable.null
).public static void log(org.eclipse.core.runtime.IStatus status)
status
- the status to log.