|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
edu.cmu.sei.aadl.annex.AnnexPlugin
public class AnnexPlugin
The main plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_ID
The ID of this plugin. |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
AnnexPlugin()
The constructor. |
Method Summary | |
---|---|
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 AnnexPlugin |
getDefault()
Returns the shared instance. |
java.util.ResourceBundle |
getResourceBundle()
Returns the plugin's resource bundle, |
static java.lang.String |
getResourceString(java.lang.String key)
Returns the string from the plugin's resource bundle, or 'key' if not found. |
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 |
Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin |
---|
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup |
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
Constructor Detail |
---|
public AnnexPlugin()
Method Detail |
---|
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
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.ui.plugin.AbstractUIPlugin
java.lang.Exception
public static AnnexPlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |