|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.viewers.Viewer org.eclipse.xtext.ui.compare.AbstractContentViewer
public abstract class AbstractContentViewer
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 |
Constructor Summary | |
---|---|
AbstractContentViewer()
|
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()
Returns the primary control associated with this viewer. |
java.lang.Object |
getInput()
Returns the input. |
org.eclipse.swt.widgets.Composite |
getParent()
|
org.eclipse.jface.viewers.ISelection |
getSelection()
Returns the current selection for this provider. |
void |
init(org.eclipse.swt.widgets.Composite parent,
org.eclipse.compare.CompareConfiguration config)
|
void |
refresh()
Refreshes this viewer completely with information freshly obtained from this viewer's model. |
void |
setInput(java.lang.Object input)
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 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 |
Field Detail |
---|
protected org.eclipse.swt.widgets.Composite parent
protected org.eclipse.compare.CompareConfiguration compareConfiguration
protected org.eclipse.jface.viewers.ISelection selection
protected org.eclipse.jface.text.source.ISourceViewer sourceViewer
protected java.lang.Object input
Constructor Detail |
---|
public AbstractContentViewer()
Method Detail |
---|
public void init(org.eclipse.swt.widgets.Composite parent, org.eclipse.compare.CompareConfiguration config)
public org.eclipse.swt.widgets.Control getControl()
org.eclipse.jface.viewers.Viewer
getControl
in class org.eclipse.jface.viewers.Viewer
protected abstract org.eclipse.jface.text.source.ISourceViewer createSourceViewer()
protected abstract void configureSourceViewer(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public java.lang.Object getInput()
org.eclipse.jface.viewers.IInputProvider
getInput
in interface org.eclipse.jface.viewers.IInputProvider
getInput
in class org.eclipse.jface.viewers.Viewer
public org.eclipse.jface.viewers.ISelection getSelection()
org.eclipse.jface.viewers.ISelectionProvider
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
getSelection
in class org.eclipse.jface.viewers.Viewer
public void refresh()
org.eclipse.jface.viewers.Viewer
refresh
in class org.eclipse.jface.viewers.Viewer
public void setInput(java.lang.Object input)
org.eclipse.jface.viewers.Viewer
setInput
in class org.eclipse.jface.viewers.Viewer
input
- the input of this viewer, or null
if nonepublic void setSelection(org.eclipse.jface.viewers.ISelection selection, boolean reveal)
org.eclipse.jface.viewers.Viewer
Subclasses must implement this method.
setSelection
in class org.eclipse.jface.viewers.Viewer
selection
- the new selectionreveal
- true
if the selection is to be made
visible, and false
otherwisepublic org.eclipse.swt.widgets.Composite getParent()
public org.eclipse.compare.CompareConfiguration getCompareConfiguration()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |