public final class StructureMergeViewerGrouper extends Object
Constructor and Description |
---|
StructureMergeViewerGrouper(com.google.common.eventbus.EventBus eventBus)
Constructs the difference grouper.
|
Modifier and Type | Method and Description |
---|---|
IDifferenceGroupProvider |
getProvider()
Get the
IDifferenceGroupProvider associated to this StructureMergeViewerGrouper. |
void |
install(StructuredViewer viewer)
Install this grouper on the given viewer.
|
protected void |
registerDifferenceGroupProvider(Notifier notifier,
IDifferenceGroupProvider groupProvider)
Registers the selected IDifferenceGroupProvider to the given Notifier.
|
void |
setProvider(IDifferenceGroupProvider provider)
Sets the instance that will provide the groups to be displayed in the structural differences view.
|
void |
uninstall(StructuredViewer viewer)
Uninstall this grouper from the given viewer.
|
public StructureMergeViewerGrouper(com.google.common.eventbus.EventBus eventBus)
eventBus
- The EventBus
which will be associated with this difference grouper.public void setProvider(IDifferenceGroupProvider provider)
provider
- The provider that will be use to compute the groups that are to be displayed in the UI.public IDifferenceGroupProvider getProvider()
IDifferenceGroupProvider
associated to this StructureMergeViewerGrouper.protected void registerDifferenceGroupProvider(Notifier notifier, IDifferenceGroupProvider groupProvider)
notifier
- the given Notifier.groupProvider
- the selected IDifferenceGroupProvider.public void install(StructuredViewer viewer)
Note that this will also install a dispose listener on that viewer in order to remove the grouper whenever the viewer is disposed.
viewer
- The viewer on which the grouper will be installed.public void uninstall(StructuredViewer viewer)
viewer
- The viewer from which the grouper should be removed.
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.