Class StructureMergeViewerGrouper
java.lang.Object
org.eclipse.emf.compare.rcp.ui.internal.structuremergeviewer.groups.StructureMergeViewerGrouper
This class will be used by the EMF Compare UI to group differences together in the structural differences
tree viewer.
- Since:
- 4.0
-
Constructor Summary
ConstructorsConstructorDescriptionStructureMergeViewerGrouper(com.google.common.eventbus.EventBus eventBus) Constructs the difference grouper. -
Method Summary
Modifier and TypeMethodDescriptionGet theIDifferenceGroupProviderassociated to this StructureMergeViewerGrouper.voidinstall(org.eclipse.jface.viewers.StructuredViewer viewer) Install this grouper on the given viewer.protected voidregisterDifferenceGroupProvider(Notifier notifier, IDifferenceGroupProvider groupProvider) Registers the selected IDifferenceGroupProvider to the given Notifier.voidsetProvider(IDifferenceGroupProvider provider) Sets the instance that will provide the groups to be displayed in the structural differences view.voiduninstall(org.eclipse.jface.viewers.StructuredViewer viewer) Uninstall this grouper from the given viewer.
-
Constructor Details
-
StructureMergeViewerGrouper
public StructureMergeViewerGrouper(com.google.common.eventbus.EventBus eventBus) Constructs the difference grouper.- Parameters:
eventBus- TheEventBuswhich will be associated with this difference grouper.
-
-
Method Details
-
setProvider
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.
-
getProvider
Get theIDifferenceGroupProviderassociated to this StructureMergeViewerGrouper.- Returns:
- the provider associated to this StructureMergeViewerGrouper
-
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.
-