public interface INavigatable
This interface may be implemented by clients.
ICompareNavigator
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_CHANGE
Change flag used to navigate to the first change.
|
static int |
LAST_CHANGE
Change flag used to navigate to the last change.
|
static String |
NAVIGATOR_PROPERTY
Property key that can be used to associate an instance of this interface with
an SWT widget using
Widget.setData(String, Object) . |
static int |
NEXT_CHANGE
Change flag used to navigate to the next change.
|
static int |
PREVIOUS_CHANGE
Change flag used to navigate to the previous change.
|
Modifier and Type | Method and Description |
---|---|
Object |
getInput()
Return the input of the compare pane being navigated or
null
if the pane does not have an input. |
boolean |
hasChange(int changeFlag)
Return whether a call to
selectChange(int) with the same parameter
would succeed. |
boolean |
openSelectedChange()
Request that the currently selected change be opened.
|
boolean |
selectChange(int changeFlag)
Starting from the current selection
selectChange selects and reveals the specified change. |
static final String NAVIGATOR_PROPERTY
Widget.setData(String, Object)
.static final int NEXT_CHANGE
selectChange(int)
,
Constant Field Valuesstatic final int PREVIOUS_CHANGE
selectChange(int)
,
Constant Field Valuesstatic final int FIRST_CHANGE
selectChange(int)
,
Constant Field Valuesstatic final int LAST_CHANGE
selectChange(int)
,
Constant Field ValuesObject getInput()
null
if the pane does not have an input.null
boolean selectChange(int changeFlag)
selectChange
selects and reveals the specified change.
If the end (or beginning) is reached, the method returns true
.changeFlag
- the change to be selected. One of NEXT_CHANGE
, PREVIOUS_CHANGE
,
FIRST_CHANGE
or LAST_CHANGE
.true
if end (beginning) is reached, false
otherwiseboolean hasChange(int changeFlag)
selectChange(int)
with the same parameter
would succeed.changeFlag
- the change to be selected. One of NEXT_CHANGE
or PREVIOUS_CHANGE
selectChange(int)
with the same parameter
would succeed.boolean openSelectedChange()
true
if the request resulted in the change being opened and false
if the
currently selected change could not be opened.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.