Package org.eclipse.compare.internal
Class CompareEditorInputNavigator
java.lang.Object
org.eclipse.compare.CompareNavigator
org.eclipse.compare.internal.CompareEditorInputNavigator
- All Implemented Interfaces:
ICompareNavigator
Supports cross-pane navigation through the differences contained in a
CompareEditorInput
or a similar type of compare container.- See Also:
-
Constructor Summary
ConstructorDescriptionCompareEditorInputNavigator
(Object[] panes) Create a navigator for navigating the given panes -
Method Summary
Modifier and TypeMethodDescriptionprotected INavigatable[]
Object[]
getPanes()
Return the set of panes that this navigator is navigating.boolean
selectChange
(boolean next) Starting from the current selectionselectChange
selects and reveals the next (previous) change.Methods inherited from class org.eclipse.compare.CompareNavigator
getNavigator, hasChange
-
Constructor Details
-
CompareEditorInputNavigator
Create a navigator for navigating the given panes- Parameters:
panes
- the panes to navigate.
-
-
Method Details
-
getPanes
Return the set of panes that this navigator is navigating. TheINavigatable
is obtain from each pane using the adaptable mechanism.- Returns:
- the set of panes that this navigator is navigating
-
selectChange
public boolean selectChange(boolean next) Description copied from interface:ICompareNavigator
Starting from the current selectionselectChange
selects and reveals the next (previous) change. If the end (or beginning) is reached, the method returnstrue
.- Specified by:
selectChange
in interfaceICompareNavigator
- Overrides:
selectChange
in classCompareNavigator
- Parameters:
next
- iftrue
the next change is selected, otherwise the previous change- Returns:
- returns
true
if end (beginning) is reached,false
otherwise
-