Package ca.cgjennings.ui.textedit
Class PlainTextSupport
- java.lang.Object
-
- ca.cgjennings.ui.textedit.DefaultCodeSupport
-
- ca.cgjennings.ui.textedit.PlainTextSupport
-
- All Implemented Interfaces:
CodeSupport
public class PlainTextSupport extends DefaultCodeSupport
Code support for plain text.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description PlainTextSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormattercreateFormatter()Creates a suitable code formatter for the specified code type.voidinstall(CodeEditorBase editor)Adds support for a code type to the editor.voiduninstall(CodeEditorBase editor)Removes the previously added support.-
Methods inherited from class ca.cgjennings.ui.textedit.DefaultCodeSupport
createNavigator, fileChanged, languageIdFor
-
-
-
-
Method Detail
-
install
public void install(CodeEditorBase editor)
Description copied from interface:CodeSupportAdds support for a code type to the editor.- Specified by:
installin interfaceCodeSupport- Overrides:
installin classDefaultCodeSupport
-
uninstall
public void uninstall(CodeEditorBase editor)
Description copied from interface:CodeSupportRemoves the previously added support.- Specified by:
uninstallin interfaceCodeSupport- Overrides:
uninstallin classDefaultCodeSupport
-
createFormatter
public Formatter createFormatter()
Description copied from interface:CodeSupportCreates a suitable code formatter for the specified code type.- Specified by:
createFormatterin interfaceCodeSupport- Overrides:
createFormatterin classDefaultCodeSupport- Returns:
- a formatter that tidies source code, or null if none is available
-
-