Class ContentMergeViewerCustomizationRegistryListener

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

    public class ContentMergeViewerCustomizationRegistryListener
    extends AbstractRegistryEventListener
    The listener responsible for handling registration events regarding content merge viewer customizations.
    • Constructor Detail

      • ContentMergeViewerCustomizationRegistryListener

        public ContentMergeViewerCustomizationRegistryListener​(String pluginID,
                                                               String extensionPointID,
                                                               org.eclipse.core.runtime.ILog log,
                                                               ContentMergeViewerCustomizationRegistry contentMergeViewerCustomizationRegistry)
        Initialize a registry event listener for our handlers.
        Parameters:
        pluginID - ID of the plugin contributing the extension point to monitor.
        extensionPointID - Actual id of the extension point to monitor.
        log - Log in which errors/warning should be logged.
        contentMergeViewerCustomizationRegistry - The actual store of handlers this registry will alter.
    • Method Detail

      • addedValid

        protected boolean addedValid​(org.eclipse.core.runtime.IConfigurationElement element)
        Description copied from class: AbstractRegistryEventListener
        Process the given element as the addition of a valid element extension.
        Specified by:
        addedValid in class AbstractRegistryEventListener
        Parameters:
        element - the element to be added.
        Returns:
        true if the given element has been added and if its children should be processed, false otherwise.
      • getAttribute

        protected String getAttribute​(org.eclipse.core.runtime.IConfigurationElement element,
                                      String attributeName,
                                      String defaultResult)
        Returns the attribute with the attributeName from the given element.
        Parameters:
        element - the IConfigurationElement.
        attributeName - the name of the attribute which's value is to be determined.
        defaultResult - the result of this method if the attribute does not exist.
        Returns:
        The determined value of the attribute if it exists, defaultResult otherwise.