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 FormattercreateFormatter()Creates a suitable code formatter for the specified code type.NavigatorcreateNavigator(NavigationHost host)Creates a suitable navigator panel for the specified code editor.voidinstall(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:CodeSupportAdds support for a code type to the editor.- Specified by:
installin interfaceCodeSupport- Overrides:
installin classDefaultCodeSupport
-
createNavigator
public Navigator createNavigator(NavigationHost host)
Description copied from interface:CodeSupportCreates a suitable navigator panel for the specified code editor.- Specified by:
createNavigatorin interfaceCodeSupport- Overrides:
createNavigatorin 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: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
-
-