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 Details

    • PLUGIN_ID

      public static final String PLUGIN_ID
      The plug-in ID.
      See Also:
    • POST_PROCESSOR_PPID

      public static final String POST_PROCESSOR_PPID
      The id of the post processor extension point.
      See Also:
    • DIFF_ENGINE_PPID

      public static final String DIFF_ENGINE_PPID
      The id of the diff engine extension point.
      See Also:
    • EQUI_ENGINE_PPID

      public static final String EQUI_ENGINE_PPID
      The id of the equi engine extension point.
      See Also:
    • REQ_ENGINE_PPID

      public static final String REQ_ENGINE_PPID
      The id of the req engine extension point.
      See Also:
    • CONFLICT_DETECTOR_PPID

      public static final String CONFLICT_DETECTOR_PPID
      The id of the conflict engine extension point.
      See Also:
    • WEIGHT_PROVIDER_PPID

      public static final String WEIGHT_PROVIDER_PPID
      The id of the weight provider extension point.
      See Also:
    • EQUALITY_HELPER_EXTENSION_PROVIDER_PPID

      public static final String EQUALITY_HELPER_EXTENSION_PROVIDER_PPID
      The id of the equality helper extension provider extension point.
      See Also:
    • LOAD_ON_DEMAND_POLICY_PPID

      public static final String LOAD_ON_DEMAND_POLICY_PPID
      The id of the load on demand policy extension point.
      See Also:
    • MERGER_PPID

      public static final String MERGER_PPID
      The id of the merger extension point.
      See Also:
    • MATCH_ENGINE_PPID

      public static final String MATCH_ENGINE_PPID
      The id of the match extension point.
      See Also:
    • FACTORY_PPID

      public static final String FACTORY_PPID
      The id of the adapter factory extension point.
      See Also:
  • Constructor Details

    • EMFCompareRCPPlugin

      public EMFCompareRCPPlugin()
  • Method Details

    • start

      public void start(BundleContext bundleContext) throws Exception
      Specified by:
      start in interface BundleActivator
      Overrides:
      start in class org.eclipse.core.runtime.Plugin
      Throws:
      Exception
    • stop

      public void stop(BundleContext bundleContext) throws Exception
      Specified by:
      stop in interface BundleActivator
      Overrides:
      stop in class org.eclipse.core.runtime.Plugin
      Throws:
      Exception
    • getAdapterFactoryRegistry

      public RankedAdapterFactoryDescriptor.Registry 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 public RankedAdapterFactoryDescriptor.Registry createFilteredAdapterFactoryRegistry()
      Deprecated.
      Use createFilteredAdapterFactoryRegistry(Map) to take the context into consideration. Typically, you would provide the comparison as a context map by passing ImmutableMap.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

      public IMerger.Registry 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

      public IPostProcessor.Descriptor.Registry<String> getPostProcessorRegistry()
      Returns the post processor registry to which extension will be registered.
      Returns:
      the post processor registry to which extension will be registered
    • getPostProcessorDescriptorRegistry

      public IItemRegistry<IPostProcessor.Descriptor> getPostProcessorDescriptorRegistry()
      Returns:
      IItemRegistry of IPostProcessor.Descriptor.
      Since:
      2.2.0
    • getLoadOnDemandPolicyRegistry

      public ILoadOnDemandPolicy.Registry getLoadOnDemandPolicyRegistry()
      Returns the registry of load on demand policies.
      Returns:
      the registry of load on demand policies.
    • getDiffEngineDescriptorRegistry

      public IItemRegistry<IDiffEngine> getDiffEngineDescriptorRegistry()
      Returns the registry of Differences engines.
      Returns:
      the registry of Differences engines
    • getEquiEngineDescriptorRegistry

      public IItemRegistry<IEquiEngine> getEquiEngineDescriptorRegistry()
      Returns the registry of Equivalences engines.
      Returns:
      the registry of Equivalences engines
    • getReqEngineDescriptorRegistry

      public IItemRegistry<IReqEngine> getReqEngineDescriptorRegistry()
      Returns the registry of Requirements engines.
      Returns:
      the registry of Requirements engines
    • getConflictDetectorDescriptorRegistry

      public IItemRegistry<IConflictDetector> getConflictDetectorDescriptorRegistry()
      Returns the registry of Conflict detector.
      Returns:
      the registry of Conflict detector
    • getWeightProviderRegistry

      public WeightProvider.Descriptor.Registry 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

      public IMatchEngine.Factory.Registry 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

      public IItemRegistry<IMatchEngine.Factory> 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, 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

      public static EMFCompareRCPPlugin getDefault()
      Returns the shared instance.
      Returns:
      the shared instance
    • register

      public 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.
      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

      public IGraphView<URI> getGraphView(String id)
      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