Class Navigatable
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.Navigatable
-
- All Implemented Interfaces:
org.eclipse.compare.INavigatable
public class Navigatable extends Object implements org.eclipse.compare.INavigatable
-
-
Field Summary
Fields Modifier and Type Field Description static intNEXT_UNRESOLVED_CHANGEstatic intPREVIOUS_UNRESOLVED_CHANGEprotected EMFCompareStructureMergeViewerContentProvider.CallbackTypeuiSyncCallbackType
-
Constructor Summary
Constructors Constructor Description Navigatable(WrappableTreeViewer viewer, EMFCompareStructureMergeViewerContentProvider contentProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireOpen(Object element)Execute the fireOpen method of the viewer associated to this navigatable.ObjectgetInput()protected ObjectgetNextItem(Object start)Starting at the given item, returns the next item in the viewer.protected ObjectgetPreviousItem(Object start)Starting at the given element, returns the previous item in the viewer.WrappableTreeViewergetViewer()Return the viewer associated with this Navigatable.booleanhasChange(int changeFlag)booleanopenSelectedChange()voidrefresh()booleanselectChange(int flag)
-
-
-
Field Detail
-
NEXT_UNRESOLVED_CHANGE
public static final int NEXT_UNRESOLVED_CHANGE
- See Also:
- Constant Field Values
-
PREVIOUS_UNRESOLVED_CHANGE
public static final int PREVIOUS_UNRESOLVED_CHANGE
- See Also:
- Constant Field Values
-
uiSyncCallbackType
protected EMFCompareStructureMergeViewerContentProvider.CallbackType uiSyncCallbackType
-
-
Constructor Detail
-
Navigatable
public Navigatable(WrappableTreeViewer viewer, EMFCompareStructureMergeViewerContentProvider contentProvider)
-
-
Method Detail
-
selectChange
public boolean selectChange(int flag)
- Specified by:
selectChangein interfaceorg.eclipse.compare.INavigatable
-
refresh
public void refresh()
-
fireOpen
public void fireOpen(Object element)
Execute the fireOpen method of the viewer associated to this navigatable.- Parameters:
element- the input of the selection of the open event fired by the fireOpen method.
-
getViewer
public WrappableTreeViewer getViewer()
Return the viewer associated with this Navigatable.- Returns:
- the viewer associated with this Navigatable.
-
getInput
public Object getInput()
- Specified by:
getInputin interfaceorg.eclipse.compare.INavigatable
-
openSelectedChange
public boolean openSelectedChange()
- Specified by:
openSelectedChangein interfaceorg.eclipse.compare.INavigatable- See Also:
INavigatable.openSelectedChange()
-
hasChange
public boolean hasChange(int changeFlag)
- Specified by:
hasChangein interfaceorg.eclipse.compare.INavigatable- See Also:
INavigatable.hasChange(int)
-
getNextItem
protected Object getNextItem(Object start)
Starting at the given item, returns the next item in the viewer.- Parameters:
start- the item for which to find the next one.- Returns:
- the next item.
-
-