Package ca.cgjennings.ui.textedit
Class TypeScriptCodeSupport
- java.lang.Object
-
- ca.cgjennings.ui.textedit.DefaultCodeSupport
-
- ca.cgjennings.ui.textedit.TypeScriptCodeSupport
-
- All Implemented Interfaces:
CodeSupport
public class TypeScriptCodeSupport extends DefaultCodeSupport
Code support for the TypeScript language.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description TypeScriptCodeSupport()
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class ca.cgjennings.ui.textedit.DefaultCodeSupport
languageIdFor
-
-
-
-
Method Detail
-
install
public void install(CodeEditorBase editor)
Description copied from interface:CodeSupport
Adds support for a code type to the editor.- Specified by:
install
in interfaceCodeSupport
- Overrides:
install
in classDefaultCodeSupport
-
uninstall
public void uninstall(CodeEditorBase editor)
Description copied from interface:CodeSupport
Removes the previously added support.- Specified by:
uninstall
in interfaceCodeSupport
- Overrides:
uninstall
in classDefaultCodeSupport
-
createFormatter
public Formatter createFormatter()
Description copied from interface:CodeSupport
Creates a suitable code formatter for the specified code type.- Specified by:
createFormatter
in interfaceCodeSupport
- Overrides:
createFormatter
in classDefaultCodeSupport
- Returns:
- a formatter that tidies source code, or null if none is available
-
fileChanged
public void fileChanged(java.io.File file)
Description copied from interface:CodeSupport
Called when the file associated with the editor changes.- Specified by:
fileChanged
in interfaceCodeSupport
- Overrides:
fileChanged
in classDefaultCodeSupport
- Parameters:
file
- the file now associated with the editor
-
createNavigator
public Navigator createNavigator(NavigationHost host)
Description copied from interface:CodeSupport
Creates a suitable navigator panel for the specified code editor.- Specified by:
createNavigator
in interfaceCodeSupport
- Overrides:
createNavigator
in classDefaultCodeSupport
- Returns:
- the new navigator suited to the supported code type, or null if none is supported.
-
-