Class orion.edit.ASTManager
Provides access to AST providers registered with the Service Registry.
Defined in: </shared/eclipse/e4/orion/I201310301703/plugins/org.eclipse.orion.client.ui/web/orion/edit/ast.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.edit.ASTManager(serviceRegistry, inputManager)
This class should not be instantiated directly.
|
Method Attributes | Method Name and Description |
---|---|
getAST(options)
Retrieves an AST from a capable AST provider.
|
|
start()
starts the manager, throws an error if the manager has already been started
|
|
stop()
stops the manager, throws an error if the manager is not running
|
|
updated(event)
Notifies the AST manager of a change to the model
|
Class Detail
orion.edit.ASTManager(serviceRegistry, inputManager)
This class should not be instantiated directly. Instead, clients should obtain it through the Service Registry.
- Parameters:
- {orion.serviceregistry.ServiceRegistry} serviceRegistry
- {orion.editor.InputManager} inputManager
Method Detail
{Object|orion.Promise}
getAST(options)
Retrieves an AST from a capable AST provider.
- Parameters:
- {Object} options Optional, Default: {}
- Options to be passed to the AST provider.
- Returns:
- {Object|orion.Promise} A promise that resolves to the AST. Resolves to
null
if no capable provider was found.
start()
starts the manager, throws an error if the manager has already been started
stop()
stops the manager, throws an error if the manager is not running
updated(event)
Notifies the AST manager of a change to the model
- Parameters:
- {Object} event