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
ConstructorsConstructorDescriptionCompareEditorInputNavigator(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.booleanselectChange(boolean next) Starting from the current selectionselectChangeselects 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. TheINavigatableis 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:ICompareNavigatorStarting from the current selectionselectChangeselects and reveals the next (previous) change. If the end (or beginning) is reached, the method returnstrue.- Specified by:
selectChangein interfaceICompareNavigator- Overrides:
selectChangein classCompareNavigator- Parameters:
next- iftruethe next change is selected, otherwise the previous change- Returns:
- returns
trueif end (beginning) is reached,falseotherwise
-