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
-
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Returns the input.Returns the current selection for this provider.void
refresh()
Refreshes this viewer completely with information freshly obtained from this viewer's model.void
Sets or clears the input for this viewer.void
setSelection
(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:Viewer
Sets or clears the input for this viewer. -
getInput
Description copied from interface:IInputProvider
Returns the input.- Specified by:
getInput
in interfaceIInputProvider
- Specified by:
getInput
in classViewer
- Returns:
- the input object
-
getSelection
Description copied from interface:ISelectionProvider
Returns the current selection for this provider.- Specified by:
getSelection
in interfaceISelectionProvider
- Specified by:
getSelection
in classViewer
- Returns:
- the current selection
-
setSelection
Description copied from class:Viewer
Sets a new selection for this viewer and optionally makes it visible.Subclasses must implement this method.
- Specified by:
setSelection
in classViewer
- Parameters:
s
- the new selectionreveal
-true
if the selection is to be made visible, andfalse
otherwise
-
refresh
public void refresh()Description copied from class:Viewer
Refreshes this viewer completely with information freshly obtained from this viewer's model.
-