Package org.eclipse.emf.compare.rcp
Class EMFCompareRCPPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.emf.compare.rcp.EMFCompareRCPPlugin
- All Implemented Interfaces:
BundleActivator
public class EMFCompareRCPPlugin
extends org.eclipse.core.runtime.Plugin
This is the central singleton for the EMF Compare RCP plugin.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The id of the conflict engine extension point.static final String
The id of the diff engine extension point.static final String
The id of the equality helper extension provider extension point.static final String
The id of the equi engine extension point.static final String
The id of the adapter factory extension point.static final String
The id of the load on demand policy extension point.static final String
The id of the match extension point.static final String
The id of the merger extension point.static final String
The plug-in ID.static final String
The id of the post processor extension point.static final String
The id of the req engine extension point.static final String
The id of the weight provider extension point.Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.createFilteredAdapterFactoryRegistry
(Map<Object, Object> context) Returns a new instance of EMF Compare adapter factory descriptor registry to which extension will be registered.Returns the adapter factory descriptor registry to which extension will be registered.Returns the registry of Conflict detector.static EMFCompareRCPPlugin
Returns the shared instance.Returns the registry of Differences engines.Returns the registry of equality helper extension providers.Returns the registry of Equivalences engines.getGraphView
(String id) Return the graph view associated with the given id, or null if it does not exist.Returns the registry of load on demand policies.Returns the match engine factory registry to which extension will be registered.Returns the match engine factory registry to which extension will be registered.Returns the merger registry to which extension will be registered.Get theIItemRegistry
ofIPostProcessor.Descriptor
.Returns the post processor registry to which extension will be registered.Returns the registry of Requirements engines.Returns the registry of weight providers.void
Log the given message with the given severity to the logger of this plugin.void
register
(IGraphConsumer consumer) This method creates a new Graph of URI, passes it to the given consumer and then keeps track of the given graph to be able to provide a read only view of it on demand.void
start
(BundleContext bundleContext) void
stop
(BundleContext bundleContext) Methods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, initializeDefaultPluginPreferences, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString
-
Field Details
-
PLUGIN_ID
The plug-in ID.- See Also:
-
POST_PROCESSOR_PPID
The id of the post processor extension point.- See Also:
-
DIFF_ENGINE_PPID
The id of the diff engine extension point.- See Also:
-
EQUI_ENGINE_PPID
The id of the equi engine extension point.- See Also:
-
REQ_ENGINE_PPID
The id of the req engine extension point.- See Also:
-
CONFLICT_DETECTOR_PPID
The id of the conflict engine extension point.- See Also:
-
WEIGHT_PROVIDER_PPID
The id of the weight provider extension point.- See Also:
-
EQUALITY_HELPER_EXTENSION_PROVIDER_PPID
The id of the equality helper extension provider extension point.- See Also:
-
LOAD_ON_DEMAND_POLICY_PPID
The id of the load on demand policy extension point.- See Also:
-
MERGER_PPID
The id of the merger extension point.- See Also:
-
MATCH_ENGINE_PPID
The id of the match extension point.- See Also:
-
FACTORY_PPID
The id of the adapter factory extension point.- See Also:
-
-
Constructor Details
-
EMFCompareRCPPlugin
public EMFCompareRCPPlugin()
-
-
Method Details
-
start
- Specified by:
start
in interfaceBundleActivator
- Overrides:
start
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceBundleActivator
- Overrides:
stop
in classorg.eclipse.core.runtime.Plugin
- Throws:
Exception
-
getAdapterFactoryRegistry
Returns the adapter factory descriptor registry to which extension will be registered.- Returns:
- the the adapter factory descriptor registry to which extension will be registered
- Since:
- 3.0
-
createFilteredAdapterFactoryRegistry
Deprecated.UsecreateFilteredAdapterFactoryRegistry(Map)
to take the context into consideration. Typically, you would provide the comparison as a context map by passingImmutableMap.of(IContextTester.CTX_COMPARISON, comparison)
as an argument. If no comparison context is available, use an empty context.Returns a new instance of EMF Compare adapter factory descriptor registry to which extension will be registered. It filters available adapter factories using preferences.- Returns:
- the the adapter factory descriptor registry to which extension will be registered
- Since:
- 2.3
-
createFilteredAdapterFactoryRegistry
public RankedAdapterFactoryDescriptor.Registry createFilteredAdapterFactoryRegistry(Map<Object, Object> context) Returns a new instance of EMF Compare adapter factory descriptor registry to which extension will be registered. It filters available adapter factories using preferences.- Parameters:
context
- context for the adapter factories. This context cannot be null but may be empty.- Returns:
- the adapter factory descriptor registry to which extension will be registered
- Since:
- 2.5
-
getMergerRegistry
Returns the merger registry to which extension will be registered.- Returns:
- the merger registry to which extension will be registered
- Since:
- 3.0
-
getPostProcessorRegistry
Returns the post processor registry to which extension will be registered.- Returns:
- the post processor registry to which extension will be registered
-
getPostProcessorDescriptorRegistry
Get theIItemRegistry
ofIPostProcessor.Descriptor
.- Returns:
IItemRegistry
ofIPostProcessor.Descriptor
.- Since:
- 2.2.0
-
getLoadOnDemandPolicyRegistry
Returns the registry of load on demand policies.- Returns:
- the registry of load on demand policies.
-
getDiffEngineDescriptorRegistry
Returns the registry of Differences engines.- Returns:
- the registry of Differences engines
-
getEquiEngineDescriptorRegistry
Returns the registry of Equivalences engines.- Returns:
- the registry of Equivalences engines
-
getReqEngineDescriptorRegistry
Returns the registry of Requirements engines.- Returns:
- the registry of Requirements engines
-
getConflictDetectorDescriptorRegistry
Returns the registry of Conflict detector.- Returns:
- the registry of Conflict detector
-
getWeightProviderRegistry
Returns the registry of weight providers.- Returns:
- the registry of weight providers
-
getEqualityHelperExtensionProviderRegistry
public EqualityHelperExtensionProvider.Descriptor.Registry getEqualityHelperExtensionProviderRegistry()Returns the registry of equality helper extension providers.- Returns:
- the registry of equality helper extension providers
-
getMatchEngineFactoryRegistry
Returns the match engine factory registry to which extension will be registered.- Returns:
- the match engine factory registry to which extension will be registered
- Since:
- 3.0
-
getMatchEngineFactoryDescriptorRegistry
Returns the match engine factory registry to which extension will be registered.- Returns:
- the match engine factory registry to which extension will be registered
- Since:
- 3.0
-
log
Log the given message with the given severity to the logger of this plugin.- Parameters:
severity
- the severity of the message.message
- the message to log.
-
getDefault
Returns the shared instance.- Returns:
- the shared instance
-
register
This method creates a new Graph of URI, passes it to the given consumer and then keeps track of the given graph to be able to provide a read only view of it on demand.- Parameters:
consumer
- An instance of graph consumer, for instance the ThreadedModelResolver instance.- Throws:
IllegalArgumentException
- if the consumer uses an ID that is already registered.- Since:
- 2.4
-
getGraphView
Return the graph view associated with the given id, or null if it does not exist.- Parameters:
id
- The id of the graph- Returns:
- The graph view registered for the given ID, which can be null.
- Since:
- 2.4
-
createFilteredAdapterFactoryRegistry(Map)
to take the context into consideration.