Package org.eclipse.ui.texteditor
Interface ITextEditorExtension
- All Known Implementing Classes:
AbstractDecoratedTextEditor,AbstractTextEditor,StatusTextEditor,TextEditor
public interface ITextEditorExtension
Extension interface for
ITextEditor. Adds
the following functions:
- status fields
- read-only state of the editor's input
- ruler context menu listeners.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRulerContextMenuListener(IMenuListener listener) Adds a ruler context menu listener to the editor.booleanReturns whether the editor's input is read-only.voidremoveRulerContextMenuListener(IMenuListener listener) Removes a ruler context menu listener from the editor.voidsetStatusField(IStatusField field, String category) Informs the editor which status field is to be used when posting status information in the given category.
-
Method Details
-
setStatusField
Informs the editor which status field is to be used when posting status information in the given category.- Parameters:
field- the status field to be usedcategory- the status information category- See Also:
-
isEditorInputReadOnly
boolean isEditorInputReadOnly()Returns whether the editor's input is read-only. The semantics of this method is orthogonal toisEditableas it talks about the editor input, i.e. the domain element, and not about the editor document.- Returns:
trueif the editor input is read-only
-
addRulerContextMenuListener
Adds a ruler context menu listener to the editor.- Parameters:
listener- the listener
-
removeRulerContextMenuListener
Removes a ruler context menu listener from the editor.- Parameters:
listener- the listener
-