Package org.eclipse.compare
Class CompareNavigator
java.lang.Object
org.eclipse.compare.CompareNavigator
- All Implemented Interfaces:
- ICompareNavigator
- Direct Known Subclasses:
- CompareEditorInputNavigator
Supports cross-pane navigation through the differences of a compare container.
 
Clients may subclass this class.
- Since:
- 3.3
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract INavigatable[]protected final INavigatablegetNavigator(Object object) Returns theINavigatablefor the given object if the object adapts toINavigatable.booleanhasChange(boolean next) Returns whether a call toICompareNavigator.selectChange(boolean)with the same parameter would succeed.booleanselectChange(boolean next) Starting from the current selectionselectChangeselects and reveals the next (previous) change.
- 
Constructor Details- 
CompareNavigatorpublic CompareNavigator()
 
- 
- 
Method Details- 
selectChangepublic 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 interface- ICompareNavigator
- Parameters:
- next- if- truethe next change is selected, otherwise the previous change
- Returns:
- returns trueif end (beginning) is reached,falseotherwise
 
- 
hasChangepublic boolean hasChange(boolean next) Returns whether a call toICompareNavigator.selectChange(boolean)with the same parameter would succeed.- Parameters:
- next- if- truethe next change is selected, otherwise the previous change
- Returns:
- whether a call to ICompareNavigator.selectChange(boolean)with the same parameter would succeed.
- Since:
- 3.3
 
 
-