|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.compare.CompareNavigator
Supports cross-pane navigation through the differences of a compare container.
Clients may subclass this class.
INavigatable
Constructor Summary | |
---|---|
CompareNavigator()
|
Method Summary | |
---|---|
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.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CompareNavigator()
Method Detail |
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 change
true
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 object
INavigatable
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 change
ICompareNavigator.selectChange(boolean)
with the same parameter
would succeed.
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.