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
Fields Modifier and Type Field Description static java.lang.StringCONFLICT_DETECTOR_PPIDThe id of the conflict engine extension point.static java.lang.StringDIFF_ENGINE_PPIDThe id of the diff engine extension point.static java.lang.StringEQUALITY_HELPER_EXTENSION_PROVIDER_PPIDThe id of the equality helper extension provider extension point.static java.lang.StringEQUI_ENGINE_PPIDThe id of the equi engine extension point.static java.lang.StringFACTORY_PPIDThe id of the adapter factory extension point.static java.lang.StringLOAD_ON_DEMAND_POLICY_PPIDThe id of the load on demand policy extension point.static java.lang.StringMATCH_ENGINE_PPIDThe id of the match extension point.static java.lang.StringMERGER_PPIDThe id of the merger extension point.static java.lang.StringPLUGIN_IDThe plug-in ID.static java.lang.StringPOST_PROCESSOR_PPIDThe id of the post processor extension point.static java.lang.StringREQ_ENGINE_PPIDThe id of the req engine extension point.static java.lang.StringWEIGHT_PROVIDER_PPIDThe id of the weight provider extension point. -
Constructor Summary
Constructors Constructor Description EMFCompareRCPPlugin() -
Method Summary
Modifier and Type Method Description RankedAdapterFactoryDescriptor.RegistrycreateFilteredAdapterFactoryRegistry()Deprecated.UsecreateFilteredAdapterFactoryRegistry(Map)to take the context into consideration.RankedAdapterFactoryDescriptor.RegistrycreateFilteredAdapterFactoryRegistry(java.util.Map<java.lang.Object,java.lang.Object> context)Returns a new instance of EMF Compare adapter factory descriptor registry to which extension will be registered.RankedAdapterFactoryDescriptor.RegistrygetAdapterFactoryRegistry()Returns the adapter factory descriptor registry to which extension will be registered.IItemRegistry<IConflictDetector>getConflictDetectorDescriptorRegistry()Returns the registry of Conflict detector.static EMFCompareRCPPlugingetDefault()Returns the shared instance.IItemRegistry<IDiffEngine>getDiffEngineDescriptorRegistry()Returns the registry of Differences engines.EqualityHelperExtensionProvider.Descriptor.RegistrygetEqualityHelperExtensionProviderRegistry()Returns the registry of equality helper extension providers.IItemRegistry<IEquiEngine>getEquiEngineDescriptorRegistry()Returns the registry of Equivalences engines.IGraphView<URI>getGraphView(java.lang.String id)Return the graph view associated with the given id, or null if it does not exist.ILoadOnDemandPolicy.RegistrygetLoadOnDemandPolicyRegistry()Returns the registry of load on demand policies.IItemRegistry<IMatchEngine.Factory>getMatchEngineFactoryDescriptorRegistry()Returns the match engine factory registry to which extension will be registered.IMatchEngine.Factory.RegistrygetMatchEngineFactoryRegistry()Returns the match engine factory registry to which extension will be registered.IMerger.RegistrygetMergerRegistry()Returns the merger registry to which extension will be registered.IItemRegistry<IPostProcessor.Descriptor>getPostProcessorDescriptorRegistry()Get theIItemRegistryofIPostProcessor.Descriptor.IPostProcessor.Descriptor.Registry<java.lang.String>getPostProcessorRegistry()Returns the post processor registry to which extension will be registered.IItemRegistry<IReqEngine>getReqEngineDescriptorRegistry()Returns the registry of Requirements engines.WeightProvider.Descriptor.RegistrygetWeightProviderRegistry()Returns the registry of weight providers.voidlog(int severity, java.lang.String message)Log the given message with the given severity to the logger of this plugin.voidregister(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.voidstart(BundleContext bundleContext)voidstop(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
public static final java.lang.String PLUGIN_IDThe plug-in ID.- See Also:
- Constant Field Values
-
POST_PROCESSOR_PPID
public static final java.lang.String POST_PROCESSOR_PPIDThe id of the post processor extension point.- See Also:
- Constant Field Values
-
DIFF_ENGINE_PPID
public static final java.lang.String DIFF_ENGINE_PPIDThe id of the diff engine extension point.- See Also:
- Constant Field Values
-
EQUI_ENGINE_PPID
public static final java.lang.String EQUI_ENGINE_PPIDThe id of the equi engine extension point.- See Also:
- Constant Field Values
-
REQ_ENGINE_PPID
public static final java.lang.String REQ_ENGINE_PPIDThe id of the req engine extension point.- See Also:
- Constant Field Values
-
CONFLICT_DETECTOR_PPID
public static final java.lang.String CONFLICT_DETECTOR_PPIDThe id of the conflict engine extension point.- See Also:
- Constant Field Values
-
WEIGHT_PROVIDER_PPID
public static final java.lang.String WEIGHT_PROVIDER_PPIDThe id of the weight provider extension point.- See Also:
- Constant Field Values
-
EQUALITY_HELPER_EXTENSION_PROVIDER_PPID
public static final java.lang.String EQUALITY_HELPER_EXTENSION_PROVIDER_PPIDThe id of the equality helper extension provider extension point.- See Also:
- Constant Field Values
-
LOAD_ON_DEMAND_POLICY_PPID
public static final java.lang.String LOAD_ON_DEMAND_POLICY_PPIDThe id of the load on demand policy extension point.- See Also:
- Constant Field Values
-
MERGER_PPID
public static final java.lang.String MERGER_PPIDThe id of the merger extension point.- See Also:
- Constant Field Values
-
MATCH_ENGINE_PPID
public static final java.lang.String MATCH_ENGINE_PPIDThe id of the match extension point.- See Also:
- Constant Field Values
-
FACTORY_PPID
public static final java.lang.String FACTORY_PPIDThe id of the adapter factory extension point.- See Also:
- Constant Field Values
-
-
Constructor Details
-
EMFCompareRCPPlugin
public EMFCompareRCPPlugin()
-
-
Method Details
-
start
- Specified by:
startin interfaceBundleActivator- Overrides:
startin classorg.eclipse.core.runtime.Plugin- Throws:
java.lang.Exception
-
stop
- Specified by:
stopin interfaceBundleActivator- Overrides:
stopin classorg.eclipse.core.runtime.Plugin- Throws:
java.lang.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(java.util.Map<java.lang.Object,java.lang.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 theIItemRegistryofIPostProcessor.Descriptor.- Returns:
IItemRegistryofIPostProcessor.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
public void log(int severity, java.lang.String message)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:
java.lang.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
-