public class EMFCompareIDEUIPlugin extends AbstractUIPlugin
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_ID
The plugin ID.
|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
EMFCompareIDEUIPlugin()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
disposeCachedImages()
dispose system resources associated with cached images.
|
static void |
disposeImage(String id)
Dispose image with the given id.
|
static EMFCompareIDEUIPlugin |
getDefault()
Returns the shared instance.
|
static Image |
getImage(String imagePath)
returns a plugin image.
|
static ImageDescriptor |
getImageDescriptor(String imagePath)
returns a plugin image descriptor.
|
LogicalModelViewHandlerRegistry |
getLogicalModelViewHandlerRegistry()
Returns the registry containing all known Logical Model View handlers.
|
ModelResolverRegistry |
getModelResolverRegistry()
Returns the registry containing all known model resolvers.
|
void |
log(int severity,
String message)
Log the given message with the give severity level.
|
void |
log(Throwable e)
Log an
Exception in the current logger . |
void |
start(BundleContext context) |
void |
stop(BundleContext context) |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public static final String PLUGIN_ID
public void start(BundleContext context) throws Exception
start
in interface BundleActivator
start
in class AbstractUIPlugin
Exception
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
public void stop(BundleContext context) throws Exception
stop
in interface BundleActivator
stop
in class AbstractUIPlugin
Exception
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
public static EMFCompareIDEUIPlugin getDefault()
public static Image getImage(String imagePath)
returns a plugin image. The returned image does not need to be explicitly disposed.
imagePath
- : plugin relative path to the imagepublic static ImageDescriptor getImageDescriptor(String imagePath)
returns a plugin image descriptor.
imagePath
- : plugin relative path to the imagepublic static void disposeImage(String id)
id
- : dispose system resources associated with the image with the given id.public static void disposeCachedImages()
public ModelResolverRegistry getModelResolverRegistry()
public LogicalModelViewHandlerRegistry getLogicalModelViewHandlerRegistry()
public void log(Throwable e)
Exception
in the current logger
.e
- the exception to be logged.public void log(int severity, String message)
IStatus.INFO
,
IStatus.WARNING
and IStatus.ERROR
.severity
- the severity of the messagemessage
- the message
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.