public interface INavigationProvider
extends org.eclipse.compare.INavigatable
Modifier and Type | Method and Description |
---|---|
void |
addNavigationListener(int eventMask,
INavigationListener listener)
Adds a listener for navigation changes.
|
IContentViewerInput |
getCurrent()
Returns the current difference/conflict as a compare merge input
|
boolean |
getFirst(boolean reveal)
Returns the first difference/conflict as a compare merge input and
optionally navigates to the first difference/conflict
|
boolean |
getFirstUnresolved(boolean reveal)
Navigates to the first unresolved difference/conflict as a compare merge
input.
|
boolean |
getLast(boolean reveal)
Returns the last difference/conflict as a compare merge input and
optionally navigates to the last difference/conflict
|
boolean |
getNext(boolean reveal)
Returns the next difference/conflict as a compare merge input and
optionally navigates to the next difference/conflict
|
boolean |
getNextUnresolved(boolean reveal)
Navigates to the next unresolved difference/conflict as a compare merge
input.
|
boolean |
getPrevious(boolean reveal)
Returns the previous difference/conflict as a compare merge input and
optionally navigates to the previous difference/conflict
|
boolean |
gotoDifference(boolean next)
Goes to the next difference in the differencelist
|
void |
removeNavigationListener(INavigationListener listener)
Removes a listener for navigation changes.
|
void addNavigationListener(int eventMask, INavigationListener listener)
eventMask
- is a bitmask composed of event types the listener is
subscribed to. Event types are defined in the
NavigationEventType classlistener
- a navigation listenerNavigationEventType
IContentViewerInput getCurrent()
boolean getNext(boolean reveal)
reveal
- flag to indicate whether to navigate to the next
difference/conflictboolean getPrevious(boolean reveal)
reveal
- flag to indicate whether to navigate to the previous
difference/conflictboolean getLast(boolean reveal)
reveal
- flag to indicate whether to navigate to the last
difference/conflictboolean getFirst(boolean reveal)
reveal
- flag to indicate whether to navigate to the first
difference/conflictboolean getNextUnresolved(boolean reveal)
reveal
- flag to indicate whether to highlight the difference/conflictboolean getFirstUnresolved(boolean reveal)
reveal
- flag to indicate whether to highlight the difference/conflictvoid removeNavigationListener(INavigationListener listener)
listener
- a navigation listenerboolean gotoDifference(boolean next)
next
- true if go down. Otherwise, go up.