public abstract class CompareNavigator extends Object implements ICompareNavigator
Clients may subclass this class.
INavigatable
Constructor and Description |
---|
CompareNavigator() |
Modifier and Type | Method and Description |
---|---|
protected abstract INavigatable[] |
getNavigatables() |
protected INavigatable |
getNavigator(Object object)
Returns the
INavigatable for the given object if the object
adapts to INavigatable . |
boolean |
hasChange(boolean next)
Returns whether a call to
ICompareNavigator.selectChange(boolean)
with the same parameter would succeed. |
boolean |
selectChange(boolean next)
Starting from the current selection
selectChange selects and reveals the next (previous) change. |
public boolean selectChange(boolean next)
ICompareNavigator
selectChange
selects and reveals the next (previous) change.
If the end (or beginning) is reached, the method returns true
.selectChange
in interface ICompareNavigator
next
- if true
the next change is selected, otherwise the previous changetrue
if end (beginning) is reached, false
otherwiseprotected abstract INavigatable[] getNavigatables()
protected final INavigatable getNavigator(Object object)
INavigatable
for the given object if the object
adapts to INavigatable
.object
- the objectINavigatable
for the given object or null
public boolean hasChange(boolean next)
ICompareNavigator.selectChange(boolean)
with the same parameter would succeed.next
- if true
the next change is selected, otherwise
the previous changeICompareNavigator.selectChange(boolean)
with the same parameter would succeed.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.