public class CodePureEditor
- Object
- PureEditor
- CodePureEditor
The pure code editor backend. It maps the code editor command / query vocabulary onto a
CodeView,
parsing the diagnostics and completion payloads that arrive over the string command channel back into
CodeDiagnostic / CodeCompletion objects.Constructors
public CodePureEditor(EditorHost host, String editorType) | Creates a code editor backend. |
Methods
protected EditorView createView(EditorHost host, boolean codeMode) | Creates the editor view. |
public void cmd(String name, String arg) | Executes a one way command. |
Inherited methods
From PureEditor
Constructor details
CodePureEditor
public CodePureEditor(EditorHost host, String editorType)Creates a code editor backend.
Method details
createView
protected EditorView createView(EditorHost host, boolean codeMode)Creates the editor view. Subclasses override to supply a code or rich text view.
cmd
public void cmd(String name, String arg)Executes a one way command. Unknown commands are ignored so subclasses can add vocabulary without
breaking the base.
Parameters
nameString- the command name
argString- the optional argument, may be null