Package org.eclipse.ui.texteditor
Interface ITextEditorExtension3
-
- All Known Implementing Classes:
AbstractDecoratedTextEditor,AbstractTextEditor,StatusTextEditor,TextEditor
public interface ITextEditorExtension3Extension interface forITextEditor. Adds the following functions:- insert mode management
- Since:
- 3.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classITextEditorExtension3.InsertModeConstitutes entities to enumerate the editor insert modes.
-
Field Summary
Fields Modifier and Type Field Description static ITextEditorExtension3.InsertModeINSERTRepresents the non-smart insert mode.static ITextEditorExtension3.InsertModeSMART_INSERTRepresents the smart insert mode.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITextEditorExtension3.InsertModegetInsertMode()Returns the current input mode of this editor.booleanisChangeInformationShowing()Returns the quick diff display state.voidsetInsertMode(ITextEditorExtension3.InsertMode mode)Sets the insert mode of this editor.voidshowChangeInformation(boolean show)Sets the display of quick diff information.
-
-
-
Field Detail
-
INSERT
static final ITextEditorExtension3.InsertMode INSERT
Represents the non-smart insert mode.
-
SMART_INSERT
static final ITextEditorExtension3.InsertMode SMART_INSERT
Represents the smart insert mode.
-
-
Method Detail
-
getInsertMode
ITextEditorExtension3.InsertMode getInsertMode()
Returns the current input mode of this editor.- Returns:
- the current input mode of this editor
-
setInsertMode
void setInsertMode(ITextEditorExtension3.InsertMode mode)
Sets the insert mode of this editor.- Parameters:
mode- the new insert mode- Throws:
IllegalArgumentException- ifmodeis not a legal insert mode for this editor
-
showChangeInformation
void showChangeInformation(boolean show)
Sets the display of quick diff information.- Parameters:
show-trueif quick diff information should be shown,falseotherwise
-
isChangeInformationShowing
boolean isChangeInformationShowing()
Returns the quick diff display state.- Returns:
trueif quick diff info is displayed,falseotherwise
-
-