public interface ITextEditorExtension
ITextEditor. Adds
the following functions:
| Modifier and Type | Method and Description |
|---|---|
void |
addRulerContextMenuListener(IMenuListener listener)
Adds a ruler context menu listener to the editor.
|
boolean |
isEditorInputReadOnly()
Returns whether the editor's input is read-only.
|
void |
removeRulerContextMenuListener(IMenuListener listener)
Removes a ruler context menu listener from the editor.
|
void |
setStatusField(IStatusField field,
String category)
Informs the editor which status field is to be used when posting status
information in the given category.
|
void setStatusField(IStatusField field, String category)
field - the status field to be usedcategory - the status information categoryITextEditorActionConstantsboolean isEditorInputReadOnly()
isEditable as it talks about the
editor input, i.e. the domain element, and not about the editor
document.true if the editor input is read-onlyvoid addRulerContextMenuListener(IMenuListener listener)
listener - the listenervoid removeRulerContextMenuListener(IMenuListener listener)
listener - the listenerGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.