java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.gmt.umlx.registry.plugin.ModelRegistryPlugin
public class ModelRegistryPlugin
The activator class controls the plug-in life cycle
Field Summary | |
---|---|
static java.lang.String |
ACCESSOR_KIND_PPID
|
static java.lang.String |
MODEL_CONTENT_PPID
|
static java.lang.String |
MODEL_SERIALIZATION_PPID
|
static java.lang.String |
PLUGIN_ID
|
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
ModelRegistryPlugin()
The constructor |
Method Summary | ||
---|---|---|
static ModelRegistryPlugin |
getDefault()
Returns the shared instance |
|
static
|
getURI(org.eclipse.core.resources.IResource resource,
A accessor)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the accessor of a (Workspace) resource. |
|
static org.eclipse.emf.common.util.URI |
getURI(org.eclipse.core.resources.IResource resource,
java.lang.String modelName)
Return the (Ecore) URI suitable for getting the (Ecore) resource defined by the modelName of a (Workspace) resource. |
|
static void |
log(org.eclipse.core.runtime.IStatus status,
boolean showErrorDialog)
Returns an image descriptor for the image file at the given plug-in relative path |
|
static void |
logError(java.lang.String string,
java.lang.Throwable e)
|
|
static void |
logException(java.lang.Throwable e,
boolean showErrorDialog)
|
|
static org.eclipse.core.runtime.CoreException |
newError(java.lang.String text,
java.lang.Throwable exception)
Return a CoreException with Error severity containing a text description and optionally wrapping a further exception. |
|
static void |
showStatus(org.eclipse.core.runtime.IStatus status)
|
|
void |
start(org.osgi.framework.BundleContext context)
|
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
public static final java.lang.String ACCESSOR_KIND_PPID
public static final java.lang.String MODEL_CONTENT_PPID
public static final java.lang.String MODEL_SERIALIZATION_PPID
Constructor Detail |
---|
public ModelRegistryPlugin()
Method Detail |
---|
public static <A extends Accessor> org.eclipse.emf.common.util.URI getURI(org.eclipse.core.resources.IResource resource, A accessor)
resource
- the Workspace resourceaccessor
- the name and type of resource to be located.
public static org.eclipse.emf.common.util.URI getURI(org.eclipse.core.resources.IResource resource, java.lang.String modelName)
resource
- the Workspace resourcemodelName
- the name of the model to be located.
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 ModelRegistryPlugin getDefault()
public static void log(org.eclipse.core.runtime.IStatus status, boolean showErrorDialog)
path
- the pathpublic static void logError(java.lang.String string, java.lang.Throwable e)
public static void logException(java.lang.Throwable e, boolean showErrorDialog)
public static org.eclipse.core.runtime.CoreException newError(java.lang.String text, java.lang.Throwable exception)
text
- description of exceptionexception
- optional wrapped exceptionpublic static void showStatus(org.eclipse.core.runtime.IStatus status)