Package ca.cgjennings.ui.textedit
Interface CodeSupport
-
- All Known Implementing Classes:
CssCodeSupport,DefaultCodeSupport,HtmlCodeSupport,JavaCodeSupport,MarkdownSupport,PlainTextSupport,PropertyFileCodeSupport,ResourceFileCodeSupport,ScriptCodeSupport,TileSetCodeSupport,TypeScriptCodeSupport
public interface CodeSupportClasses that provide additional editing support for a code type.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormattercreateFormatter()Creates a suitable code formatter for the specified code type.NavigatorcreateNavigator(NavigationHost host)Creates a suitable navigator panel for the specified code editor.voidfileChanged(java.io.File file)Called when the file associated with the editor changes.voidinstall(CodeEditorBase editor)Adds support for a code type to the editor.voiduninstall(CodeEditorBase editor)Removes the previously added support.
-
-
-
Method Detail
-
install
void install(CodeEditorBase editor)
Adds support for a code type to the editor.
-
uninstall
void uninstall(CodeEditorBase editor)
Removes the previously added support.
-
createNavigator
Navigator createNavigator(NavigationHost host)
Creates a suitable navigator panel for the specified code editor.- Returns:
- the new navigator suited to the supported code type, or null if none is supported.
-
createFormatter
Formatter createFormatter()
Creates a suitable code formatter for the specified code type.- Returns:
- a formatter that tidies source code, or null if none is available
-
fileChanged
void fileChanged(java.io.File file)
Called when the file associated with the editor changes.- Parameters:
file- the file now associated with the editor
-
-