|
||||||||||
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.osate.core.OsateCorePlugin
public class OsateCorePlugin
The main plugin class to be used in the desktop.
Field Summary | |
---|---|
static java.lang.String |
copyright
|
static java.lang.String |
PLUGIN_ID
ID of the AADL core plugin (value "edu.cmu.sei.osate.core" ) |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
OsateCorePlugin()
The constructor. |
Method Summary | |
---|---|
static IAadlProject |
create(org.eclipse.core.resources.IProject project)
Returns the AADL project corresponding to the given project. |
static OsateCorePlugin |
getDefault()
Returns the shared instance. |
static java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.String arg)
|
static java.lang.String |
getFormattedMessage(java.lang.String key,
java.lang.String[] args)
|
static org.eclipse.core.runtime.IPath |
getInstallLocation()
|
static java.net.URL |
getInstallURL()
|
static java.lang.String |
getMessage(java.lang.String key)
|
static java.lang.String |
getPluginId()
|
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 org.eclipse.core.resources.IWorkspace |
getWorkspace()
|
static boolean |
isDebug()
|
static boolean |
isDebug(java.lang.String option)
|
static void |
log(org.eclipse.core.runtime.IStatus status)
|
static void |
log(java.lang.Throwable t)
|
static void |
logErrorMessage(java.lang.String message)
|
static void |
logErrorStatus(java.lang.String message,
org.eclipse.core.runtime.IStatus status)
|
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 copyright
public static final java.lang.String PLUGIN_ID
"edu.cmu.sei.osate.core"
)
Constructor Detail |
---|
public OsateCorePlugin()
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 IAadlProject create(org.eclipse.core.resources.IProject project)
Note that no check is done at this time on the existence or the AADL nature of this project.
project
- the given project
public static OsateCorePlugin getDefault()
public static java.lang.String getResourceString(java.lang.String key)
public java.util.ResourceBundle getResourceBundle()
public static org.eclipse.core.resources.IWorkspace getWorkspace()
public static java.lang.String getPluginId()
public static org.eclipse.core.runtime.IPath getInstallLocation()
public static java.net.URL getInstallURL()
public static void log(org.eclipse.core.runtime.IStatus status)
public static void log(java.lang.Throwable t)
public static void logErrorMessage(java.lang.String message)
public static void logErrorStatus(java.lang.String message, org.eclipse.core.runtime.IStatus status)
public static boolean isDebug()
public static boolean isDebug(java.lang.String option)
public static java.lang.String getMessage(java.lang.String key)
public static java.lang.String getFormattedMessage(java.lang.String key, java.lang.String arg)
public static java.lang.String getFormattedMessage(java.lang.String key, java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |