Class orion.EditorView
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.ui/web/orion/editorView.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a new EditorView object.
|
Method Attributes | Method Name and Description |
---|---|
addEventListener(type, listener, useCapture)
Adds an event listener to this event target.
|
|
create()
|
|
createSession(evt)
|
|
destroy()
|
|
dispatchEvent(evt)
Dispatches the given event to the listeners added to this event target.
|
|
removeEventListener(type, listener, useCapture)
Removes an event listener from the event target.
|
|
setContents(contents, contentType)
|
|
setParent(p)
|
|
updateKeyMode(prefs, textView)
|
|
updateSettings(prefs)
|
|
updateSourceCodeActions(prefs, sourceCodeActions)
|
|
updateStyler(prefs)
|
|
updateViewOptions(prefs)
|
Method Detail
addEventListener(type, listener, useCapture)
Adds an event listener to this event target.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
- Parameters:
- {String} type
- The event type.
- {Function|EventListener} listener
- The function or the EventListener that will be executed when the event happens.
- {Boolean} useCapture Optional, Default: false
true
if the listener should be trigged in the capture phase.
create()
createSession(evt)
- Parameters:
- evt
destroy()
dispatchEvent(evt)
Dispatches the given event to the listeners added to this event target.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
- Parameters:
- {Event} evt
- The event to dispatch.
getParent()
getSettings()
getStyleAccessor()
refreshSyntaxCheck()
removeEventListener(type, listener, useCapture)
Removes an event listener from the event target.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
All the parameters must be the same ones used to add the listener.
Defined in: </jobs/genie.orion/orion-client-dev/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/eventTarget.js>.
- Parameters:
- {String} type
- The event type
- {Function|EventListener} listener
- The function or the EventListener that will be executed when the event happens.
- {Boolean} useCapture Optional, Default: false
true
if the listener should be trigged in the capture phase.
setContents(contents, contentType)
- Parameters:
- contents
- contentType
setParent(p)
- Parameters:
- p
updateKeyMode(prefs, textView)
- Parameters:
- prefs
- textView
updateSettings(prefs)
- Parameters:
- prefs
updateSourceCodeActions(prefs, sourceCodeActions)
- Parameters:
- prefs
- sourceCodeActions
updateStyler(prefs)
- Parameters:
- prefs
updateViewOptions(prefs)
- Parameters:
- prefs