Class StructureMergeViewerGrouper


  • public final class StructureMergeViewerGrouper
    extends Object
    This class will be used by the EMF Compare UI to group differences together in the structural differences tree viewer.
    Since:
    4.0
    • Constructor Detail

      • StructureMergeViewerGrouper

        public StructureMergeViewerGrouper​(com.google.common.eventbus.EventBus eventBus)
        Constructs the difference grouper.
        Parameters:
        eventBus - The EventBus which will be associated with this difference grouper.
    • Method Detail

      • setProvider

        public void setProvider​(IDifferenceGroupProvider provider)
        Sets the instance that will provide the groups to be displayed in the structural differences view.
        Parameters:
        provider - The provider that will be use to compute the groups that are to be displayed in the UI.
      • registerDifferenceGroupProvider

        protected void registerDifferenceGroupProvider​(Notifier notifier,
                                                       IDifferenceGroupProvider groupProvider)
        Registers the selected IDifferenceGroupProvider to the given Notifier.
        Parameters:
        notifier - the given Notifier.
        groupProvider - the selected IDifferenceGroupProvider.
      • install

        public void install​(org.eclipse.jface.viewers.StructuredViewer viewer)
        Install this grouper on the given viewer.

        Note that this will also install a dispose listener on that viewer in order to remove the grouper whenever the viewer is disposed.

        Parameters:
        viewer - The viewer on which the grouper will be installed.
      • uninstall

        public void uninstall​(org.eclipse.jface.viewers.StructuredViewer viewer)
        Uninstall this grouper from the given viewer.
        Parameters:
        viewer - The viewer from which the grouper should be removed.