Class MergerExtensionRegistryListener

  • All Implemented Interfaces:
    EventListener, org.eclipse.core.runtime.IRegistryEventListener

    public class MergerExtensionRegistryListener
    extends AbstractRegistryEventListener
    Listener for contributions to the merger extension.
    • Constructor Detail

      • MergerExtensionRegistryListener

        public MergerExtensionRegistryListener​(String pluginID,
                                               String extensionPointID,
                                               org.eclipse.core.runtime.ILog log,
                                               IMerger.Registry mergerRegistry)
        Constructor.
        Parameters:
        pluginID - The plugin id.
        extensionPointID - The extension point id.
        log - The log in which to report failures.
        mergerRegistry - The actual registry that will be populated by this listener.
    • Method Detail

      • readElement

        protected boolean readElement​(org.eclipse.core.runtime.IConfigurationElement element,
                                      AbstractRegistryEventListener.Action b)
        Reads the given element. This method can be call when the element is added or remove. The action reflect it. It returns true if the element is recognized as valid regarding the monitored extension point. It will be call on sub elements recursively for all recognized ones.
        Overrides:
        readElement in class AbstractRegistryEventListener
        Parameters:
        element - the element to be read.
        b - is the element added or removed.
        Returns:
        true if the element is recognized as valid regarding the monitored extension point.
        See Also:
        org.eclipse.emf.compare.ide.utils.AbstractRegistryEventListener#readElement(org.eclipse.core.runtime.IConfigurationElement, org.eclipse.emf.compare.ide.utils.AbstractRegistryEventListener.Action)