Class EMFCompareIDEUIPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.eclipse.emf.compare.ide.ui.internal.EMFCompareIDEUIPlugin
- All Implemented Interfaces:
BundleActivator
public class EMFCompareIDEUIPlugin
extends org.eclipse.ui.plugin.AbstractUIPlugin
The activator class, controls the plug-in life cycle.
-
Field Summary
FieldsFields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddispose system resources associated with cached images.static voiddisposeImage(String id) Dispose image with the given id.static EMFCompareIDEUIPluginReturns the shared instance.static org.eclipse.swt.graphics.Imagereturns a plugin image.static org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor(String imagePath) returns a plugin image descriptor.Returns the registry containing all known Logical Model View handlers.Returns the registry containing all known merge resolution listeners.Returns the registry containing all known dependency providers.Returns the registry containing all known model minimizers.Returns the registry containing all known model resolvers.Returns the registry containing all known subscriber providers.voidLog the given message with the give severity level.voidLog anExceptionin thecurrent logger.voidstart(BundleContext context) voidstop(BundleContext context) Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startupMethods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
The plugin ID.- See Also:
-
-
Constructor Details
-
EMFCompareIDEUIPlugin
public EMFCompareIDEUIPlugin()Default constructor.
-
-
Method Details
-
start
- Specified by:
startin interfaceBundleActivator- Overrides:
startin classorg.eclipse.ui.plugin.AbstractUIPlugin- Throws:
Exception- See Also:
-
stop
- Specified by:
stopin interfaceBundleActivator- Overrides:
stopin classorg.eclipse.ui.plugin.AbstractUIPlugin- Throws:
Exception- See Also:
-
getDefault
Returns the shared instance.- Returns:
- the shared instance.
-
getImage
returns a plugin image. The returned image does not need to be explicitly disposed.
- Parameters:
imagePath- : plugin relative path to the image- Returns:
- Image : plugin hosted image
-
getImageDescriptor
returns a plugin image descriptor.
- Parameters:
imagePath- : plugin relative path to the image- Returns:
- ImageDescriptor : image descriptor.
-
disposeImage
Dispose image with the given id.- Parameters:
id- : dispose system resources associated with the image with the given id.
-
disposeCachedImages
public static void disposeCachedImages()dispose system resources associated with cached images. -
getModelResolverRegistry
Returns the registry containing all known model resolvers.- Returns:
- The registry containing all known model resolvers.
-
getLogicalModelViewHandlerRegistry
Returns the registry containing all known Logical Model View handlers.- Returns:
- The registry containing all known Logical Model View handlers.
-
getModelMinimizerRegistry
Returns the registry containing all known model minimizers.- Returns:
- The registry containing all known model minimiers.
-
getModelDependencyProviderRegistry
Returns the registry containing all known dependency providers.- Returns:
- The registry containing all known dependency providers.
-
getMergeResolutionListenerRegistry
Returns the registry containing all known merge resolution listeners.- Returns:
- the registry containing all known merge resolution listeners.
-
getSubscriberProviderRegistry
Returns the registry containing all known subscriber providers.- Returns:
- The registry containing all known subscriber providers.
-
log
Log anExceptionin thecurrent logger.- Parameters:
e- the exception to be logged.
-
log
Log the given message with the give severity level. Severity is one ofIStatus.INFO,IStatus.WARNINGandIStatus.ERROR.- Parameters:
severity- the severity of the messagemessage- the message
-