public class OsateCorePlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
static java.lang.String |
PLUGIN_ID
ID of the AADL core plugin (value
"org.osate.core" ) |
Constructor and Description |
---|
OsateCorePlugin()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static org.osate.workspace.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) |
com.google.inject.Injector |
getInjector(java.lang.String languageName) |
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 |
registerInjectorFor(java.lang.String language,
com.google.inject.Injector inject) |
void |
registerResourceSetProvider(java.lang.String language,
com.google.inject.Injector inject) |
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
|
getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, shutdown, startup
public static final java.lang.String copyright
public static final java.lang.String PLUGIN_ID
"org.osate.core"
)public com.google.inject.Injector getInjector(java.lang.String languageName)
public void registerInjectorFor(java.lang.String language, com.google.inject.Injector inject) throws java.lang.Exception
java.lang.Exception
public void registerResourceSetProvider(java.lang.String language, com.google.inject.Injector inject) throws java.lang.Exception
java.lang.Exception
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 org.osate.workspace.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 projectpublic 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)