Package ca.cgjennings.ui.textedit
Interface CodeSupport
-
- All Known Implementing Classes:
CssCodeSupport
,DefaultCodeSupport
,HtmlCodeSupport
,JavaCodeSupport
,MarkdownSupport
,PlainTextSupport
,PropertyFileCodeSupport
,ResourceFileCodeSupport
,ScriptCodeSupport
,TileSetCodeSupport
,TypeScriptCodeSupport
public interface CodeSupport
Classes 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 Formatter
createFormatter()
Creates a suitable code formatter for the specified code type.Navigator
createNavigator(NavigationHost host)
Creates a suitable navigator panel for the specified code editor.void
fileChanged(java.io.File file)
Called when the file associated with the editor changes.void
install(CodeEditorBase editor)
Adds support for a code type to the editor.void
uninstall(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
-
-