Global

Members

(constant) ALL_LOCAL_COMMANDS

The registry of all local commands.

Local commands auto-register themselves here as follows:

ALL_LOCAL_COMMANDS[command_name] = new class_name()
Source:

(constant) COMMAND_RESULT_CANCELED :number

Command execution was canceled by user.
Type:
  • number
Source:
See:

(constant) COMMAND_RESULT_DONE :number

Command execution has succeeded.
Type:
  • number
Source:
See:

(constant) COMMAND_RESULT_FAILED :number

Command execution has failed.
Type:
  • number
Source:
See:

(constant) COMMAND_RESULT_STOPPED :number

Command execution has been stopped because this remote command is interactive.
Type:
  • number
Source:
See:

(constant) CSSIcon

Automatically generated. Do not edit. Not part of the public, documented API.
Source:

(constant) EditIcon

Automatically generated. Do not edit. Not part of the public, documented API.
Source:

(constant) EXECUTE_HELPER :int

Used by a command to execute a sub-command (said to be a "helper" command).
Type:
  • int
Source:
See:

(constant) EXECUTE_NORMAL :int

Used to execute a command "normally".
Type:
  • int
Source:
See:

(constant) EXECUTE_TEST :int

Used to test whether a command can be executed.
Type:
  • int
Source:
See:

(constant) FILE_PATH_SEPARATOR :string

The platform specific file path separator, that is, '\' on Windows and '/' on the other platforms.
Type:
  • string
Source:

(constant) SEVERITY_INVALID_DATA :number

Type:
  • number
Source:

(constant) SEVERITY_INVALID_REFERENCE :number

Type:
  • number
Source:

(constant) SEVERITY_INVALID_STRUCTURE :number

Type:
  • number
Source:

(constant) SEVERITY_NONE :number

Type:
  • number
Source:

(constant) SEVERITY_SEMANTIC_ERROR :number

Type:
  • number
Source:

(constant) SEVERITY_SEMANTIC_WARNING :number

Type:
  • number
Source:

(constant) StockIcon

Automatically generated. Do not edit. Not part of the public, documented API.
Source:

(constant) WINDOWS_FILE_PATH_SEPARATOR :string

The file path separator on Windows , that is, '\'.
Type:
  • string
Source:

Methods

assertOrError()

Unlike console.assert, this function throws an error when the assertion fails.
Source:

splitTrimString(s, separ) → {array}

Unlike String.split which, when the string is empty, returns an array containing one empty string, this function returns an empty array.
Parameters:
Name Type Description
s string string to be first trimmed then split. May be null.
separ separ where each split should occur; can be a string or a regular expression
Source:
Returns:
an array of strings, split at each point where the separator occurs.
Type
array