public class CodePureEditor

  1. Object
  2. PureEditor
  3. 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

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

name String
the command name
arg String
the optional argument, may be null