Package org.eclipse.ui.texteditor
Interface ITextEditorExtension6
-
- All Known Implementing Classes:
AbstractDecoratedTextEditor,AbstractTextEditor,StatusTextEditor,TextEditor
public interface ITextEditorExtension6Extension interface forITextEditor. Adds the following functions:- word wrap
This interface may be implemented by clients.
- Since:
- 3.10
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisWordWrapEnabled()Returnstrueif word wrap is currently enabled,falseotherwise.voidsetWordWrap(boolean enable)Sets whether the text editor wraps lines.
-
-
-
Method Detail
-
isWordWrapEnabled
boolean isWordWrapEnabled()
Returnstrueif word wrap is currently enabled,falseotherwise.- Returns:
- the receiver's word wrap state
-
setWordWrap
void setWordWrap(boolean enable)
Sets whether the text editor wraps lines. Nothing happens if the receiver already is in the requested state.Note: enabling word wrap disables block selection mode (see
ITextEditorExtension5), enabling block selection mode will disable word wrap.- Parameters:
enable-trueto enable word wrap,falseto turn it off.- See Also:
ITextEditorExtension5.setBlockSelectionMode(boolean)
-
-