de.cau.cs.kieler.core.ui.views
Class TextViewer
java.lang.Object
org.eclipse.jface.viewers.Viewer
org.eclipse.jface.viewers.ContentViewer
de.cau.cs.kieler.core.ui.views.TextViewer
- All Implemented Interfaces:
- IInputProvider, IInputSelectionProvider, ISelectionProvider
public class TextViewer
- extends ContentViewer
A Viewer for displaying some sort of text content.
- Rating

- (2010-03-09) review by msp, soh
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 |
TextViewer
public TextViewer(Composite parent)
- Creates a new text viewer.
- Parameters:
parent
- component that contains the text
getControl
public Control getControl()
- Specified by:
getControl
in class Viewer
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interface ISelectionProvider
- Specified by:
getSelection
in class Viewer
refresh
public void refresh()
- Specified by:
refresh
in class Viewer
setSelection
public void setSelection(ISelection selection,
boolean reveal)
- Specified by:
setSelection
in class Viewer
setText
public void setText(String s)
- Changes the displayed text to the given string.
- Parameters:
s
- text to be displayed
append
public void append(String s)
- Appends the given string to the currently displayed text.
- Parameters:
s
- text to be appended
setEnabled
public void setEnabled(boolean enabled)
- Enable/Disable the current textviewer.
- Parameters:
enabled
- true to enable the viewer