Package org.eclipse.compare.internal
Class AbstractViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.compare.internal.AbstractViewer
- All Implemented Interfaces:
IInputProvider,IInputSelectionProvider,ISelectionProvider
- Direct Known Subclasses:
BinaryCompareViewer,NullViewer,SimpleTextViewer
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.Viewer
WIDGET_DATA_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInput()Returns the input.Returns the current selection for this provider.voidrefresh()Refreshes this viewer completely with information freshly obtained from this viewer's model.voidSets or clears the input for this viewer.voidsetSelection(ISelection s, boolean reveal) Sets a new selection for this viewer and optionally makes it visible.Methods inherited from class org.eclipse.jface.viewers.Viewer
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getControl, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
-
Constructor Details
-
AbstractViewer
public AbstractViewer()
-
-
Method Details
-
setInput
Description copied from class:ViewerSets or clears the input for this viewer. -
getInput
Description copied from interface:IInputProviderReturns the input.- Specified by:
getInputin interfaceIInputProvider- Specified by:
getInputin classViewer- Returns:
- the input object
-
getSelection
Description copied from interface:ISelectionProviderReturns the current selection for this provider.- Specified by:
getSelectionin interfaceISelectionProvider- Specified by:
getSelectionin classViewer- Returns:
- the current selection
-
setSelection
Description copied from class:ViewerSets a new selection for this viewer and optionally makes it visible.Subclasses must implement this method.
- Specified by:
setSelectionin classViewer- Parameters:
s- the new selectionreveal-trueif the selection is to be made visible, andfalseotherwise
-
refresh
public void refresh()Description copied from class:ViewerRefreshes this viewer completely with information freshly obtained from this viewer's model.
-