Interface IMergeViewer
- All Superinterfaces:
org.eclipse.jface.viewers.IInputProvider
,org.eclipse.jface.viewers.IInputSelectionProvider
,org.eclipse.jface.viewers.ISelectionProvider
- All Known Implementing Classes:
AbstractMergeViewer
,AbstractStructuredMergeViewer
,AbstractTableOrTreeMergeViewer
,TableMergeViewer
,TreeMergeViewer
public interface IMergeViewer
extends org.eclipse.jface.viewers.IInputSelectionProvider
A specific
IInputSelectionProvider
for EMF Compare.- Since:
- 4.0
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
An enum that represents the side of the viewer and provides utilty methods to manage sides. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.Control
Returns the primary control associated with this viewer.getSide()
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
(org.eclipse.jface.viewers.ISelection selection, boolean reveal) Sets a new selection for this viewer and optionally makes it visible.Methods inherited from interface org.eclipse.jface.viewers.IInputProvider
getInput
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelection
-
Method Details
-
getSide
IMergeViewer.MergeViewerSide getSide() -
getControl
org.eclipse.swt.widgets.Control getControl()Returns the primary control associated with this viewer.- Returns:
- the SWT control which displays this viewer's content
-
refresh
void refresh()Refreshes this viewer completely with information freshly obtained from this viewer's model. -
setInput
Sets or clears the input for this viewer.- Parameters:
input
- the input of this viewer, ornull
if none
-
setSelection
void setSelection(org.eclipse.jface.viewers.ISelection selection, boolean reveal) Sets a new selection for this viewer and optionally makes it visible.Subclasses must implement this method.
- Parameters:
selection
- the new selectionreveal
-true
if the selection is to be made visible, andfalse
otherwise
-