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 SummaryFields inherited from class org.eclipse.jface.viewers.ViewerWIDGET_DATA_KEY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.VieweraddHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getControl, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection
- 
Constructor Details- 
AbstractViewerpublic AbstractViewer()
 
- 
- 
Method Details- 
setInputDescription copied from class:ViewerSets or clears the input for this viewer.
- 
getInputDescription copied from interface:IInputProviderReturns the input.- Specified by:
- getInputin interface- IInputProvider
- Specified by:
- getInputin class- Viewer
- Returns:
- the input object
 
- 
getSelectionDescription copied from interface:ISelectionProviderReturns the current selection for this provider.- Specified by:
- getSelectionin interface- ISelectionProvider
- Specified by:
- getSelectionin class- Viewer
- Returns:
- the current selection
 
- 
setSelectionDescription copied from class:ViewerSets a new selection for this viewer and optionally makes it visible.Subclasses must implement this method. - Specified by:
- setSelectionin class- Viewer
- Parameters:
- s- the new selection
- reveal-- trueif the selection is to be made visible, and- falseotherwise
 
- 
refreshpublic void refresh()Description copied from class:ViewerRefreshes this viewer completely with information freshly obtained from this viewer's model.
 
-