public class EMFCompareIDEUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
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 org.eclipse.swt.graphics.Image |
getImage(String imagePath)
returns a plugin image.
|
static org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor(String imagePath)
returns a plugin image descriptor.
|
LogicalModelViewHandlerRegistry |
getLogicalModelViewHandlerRegistry()
Returns the registry containing all known Logical Model View handlers.
|
MergeResolutionListenerRegistry |
getMergeResolutionListenerRegistry()
Returns the registry containing all known merge resolution listeners.
|
ModelDependencyProviderRegistry |
getModelDependencyProviderRegistry()
Returns the registry containing all known dependency providers.
|
IModelMinimizer.Registry |
getModelMinimizerRegistry()
Returns the registry containing all known model minimizers.
|
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
public static final String PLUGIN_ID
public void start(BundleContext context) throws Exception
start
in interface BundleActivator
start
in class org.eclipse.ui.plugin.AbstractUIPlugin
Exception
AbstractUIPlugin.start(org.osgi.framework.BundleContext)
public void stop(BundleContext context) throws Exception
stop
in interface BundleActivator
stop
in class org.eclipse.ui.plugin.AbstractUIPlugin
Exception
AbstractUIPlugin.stop(org.osgi.framework.BundleContext)
public static EMFCompareIDEUIPlugin getDefault()
public static org.eclipse.swt.graphics.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 org.eclipse.jface.resource.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 IModelMinimizer.Registry getModelMinimizerRegistry()
public ModelDependencyProviderRegistry getModelDependencyProviderRegistry()
public MergeResolutionListenerRegistry getMergeResolutionListenerRegistry()
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, 2015 Obeo and others. All rights reserved.