Package ca.cgjennings.ui.textedit
Class ScriptCodeSupport
- java.lang.Object
-
- ca.cgjennings.ui.textedit.DefaultCodeSupport
-
- ca.cgjennings.ui.textedit.ScriptCodeSupport
-
- All Implemented Interfaces:
CodeSupport
public class ScriptCodeSupport extends DefaultCodeSupport
Code support for the JavaScript-based Strange Eons scripting language.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description ScriptCodeSupport()
-
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
install(CodeEditorBase editor)
Adds support for a code type to the editor.-
Methods inherited from class ca.cgjennings.ui.textedit.DefaultCodeSupport
fileChanged, languageIdFor, uninstall
-
-
-
-
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
-
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.
-
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
-
-