Class Index | File Index

Classes


Class orion.edit.ASTManager

Provides access to AST providers registered with the Service Registry.
Defined in: </shared/eclipse/e4/orion/I201312031300/plugins/org.eclipse.orion.client.ui/web/orion/edit/ast.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
orion.edit.ASTManager(serviceRegistry, inputManager)
This class should not be instantiated directly.
Method Summary
Method Attributes Method Name and Description
 
getAST(options)
Retrieves an AST from a capable AST provider.
 
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
{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:
{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
Throws:
Error if the manager has already been started

stop()
stops the manager, throws an error if the manager is not running
Throws:
Error if the manager has already been stopped

updated(event)
Notifies the AST manager of a change to the model.
Parameters:
{Object} event

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Dec 03 2013 13:05:03 GMT-0500 (EST)