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)
Return the
INavigatable for the given object. |
boolean |
hasChange(boolean next)
Return 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 implements INavigatable
, then
the object is returned. Otherwise, if the object
implements IAdaptable
, the object is
adapted 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, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.