org.eclipse.xtext.ui.compare
Class AbstractContentViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.xtext.ui.compare.AbstractContentViewer
- All Implemented Interfaces:
- org.eclipse.jface.viewers.IInputProvider, org.eclipse.jface.viewers.IInputSelectionProvider, org.eclipse.jface.viewers.ISelectionProvider
- Direct Known Subclasses:
- DefaultContentViewer
public abstract class AbstractContentViewer
- extends org.eclipse.jface.viewers.Viewer
- Author:
- Michael Clay - Initial contribution and API
Field Summary |
protected org.eclipse.compare.CompareConfiguration |
compareConfiguration
|
protected java.lang.Object |
input
|
protected org.eclipse.swt.widgets.Composite |
parent
|
protected org.eclipse.jface.viewers.ISelection |
selection
|
protected org.eclipse.jface.text.source.ISourceViewer |
sourceViewer
|
Fields inherited from class org.eclipse.jface.viewers.Viewer |
WIDGET_DATA_KEY |
Method Summary |
protected abstract void |
configureSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
protected abstract org.eclipse.jface.text.source.ISourceViewer |
createSourceViewer()
|
org.eclipse.compare.CompareConfiguration |
getCompareConfiguration()
|
org.eclipse.swt.widgets.Control |
getControl()
|
java.lang.Object |
getInput()
|
org.eclipse.swt.widgets.Composite |
getParent()
|
org.eclipse.jface.viewers.ISelection |
getSelection()
|
void |
init(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration config)
|
void |
refresh()
|
void |
setInput(java.lang.Object input)
|
void |
setSelection(org.eclipse.jface.viewers.ISelection selection,
boolean reveal)
|
Methods inherited from class org.eclipse.jface.viewers.Viewer |
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected org.eclipse.swt.widgets.Composite parent
compareConfiguration
protected org.eclipse.compare.CompareConfiguration compareConfiguration
selection
protected org.eclipse.jface.viewers.ISelection selection
sourceViewer
protected org.eclipse.jface.text.source.ISourceViewer sourceViewer
input
protected java.lang.Object input
AbstractContentViewer
public AbstractContentViewer()
init
public void init(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration config)
getControl
public org.eclipse.swt.widgets.Control getControl()
- Specified by:
getControl
in class org.eclipse.jface.viewers.Viewer
createSourceViewer
protected abstract org.eclipse.jface.text.source.ISourceViewer createSourceViewer()
configureSourceViewer
protected abstract void configureSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInput
public java.lang.Object getInput()
- Specified by:
getInput
in interface org.eclipse.jface.viewers.IInputProvider
- Specified by:
getInput
in class org.eclipse.jface.viewers.Viewer
getSelection
public org.eclipse.jface.viewers.ISelection getSelection()
- Specified by:
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
- Specified by:
getSelection
in class org.eclipse.jface.viewers.Viewer
refresh
public void refresh()
- Specified by:
refresh
in class org.eclipse.jface.viewers.Viewer
setInput
public void setInput(java.lang.Object input)
- Specified by:
setInput
in class org.eclipse.jface.viewers.Viewer
setSelection
public void setSelection(org.eclipse.jface.viewers.ISelection selection,
boolean reveal)
- Specified by:
setSelection
in class org.eclipse.jface.viewers.Viewer
getParent
public org.eclipse.swt.widgets.Composite getParent()
getCompareConfiguration
public org.eclipse.compare.CompareConfiguration getCompareConfiguration()