Class Index | File Index

Classes


Class orion.editor.EditOptions

This object describes the options for edit.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/edit.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
the editor contents.
 
the type of the content (eg.
 
whether or not the tab key inserts white spaces.
 
the line index displayed for the first line of text.
 
whether or not the view is in full selection mode.
 
a callback for providing grammars for a content type
 
a factory for hovers.
 
 
whether or not to focus the editor on creation.
 
the parent element for the view, it can be either a DOM element or an ID for a DOM element.
 
whether or not the view is read-only.
 
whether or not the annotation ruler is shown.
 
whether or not the folding ruler is shown.
 
whether or not the lines ruler is shown.
 
whether or not the overview ruler is shown.
 
whether or not the zoom ruler is shown.
 
whether or not the editor is in single line mode.
 
a status reporter.
 
whether or not the tab keypress is consumed by the view or is used for focus traversal.
 
The number of spaces in a tab.
 
the CSS class for the view theming.
 
the editor title.
 
whether or not the view is wrappable.
 
whether or not the view wraps lines.
Class Detail
orion.editor.EditOptions()
Field Detail
{String} contents
the editor contents.
Default Value:
""

{String} contentType
the type of the content (eg.- application/javascript, text/html, etc.)

{Boolean} expandTab
whether or not the tab key inserts white spaces.
Default Value:
false

{Number} firstLineIndex
the line index displayed for the first line of text.
Default Value:
1

{Boolean} fullSelection
whether or not the view is in full selection mode.
Default Value:
true

{Function} grammarProvider
a callback for providing grammars for a content type

{Function} hoverFactory
a factory for hovers.

{String} lang
Deprecated:
use contentType instead

{Boolean} noFocus
whether or not to focus the editor on creation.
Default Value:
false

{String|DOMElement} parent
the parent element for the view, it can be either a DOM element or an ID for a DOM element.

{Boolean} readonly
whether or not the view is read-only.
Default Value:
false

{Boolean} showAnnotationRuler
whether or not the annotation ruler is shown.
Default Value:
true

{Boolean} showFoldingRuler
whether or not the folding ruler is shown.
Default Value:
true

{Boolean} showLinesRuler
whether or not the lines ruler is shown.
Default Value:
true

{Boolean} showOverviewRuler
whether or not the overview ruler is shown.
Default Value:
true

{Boolean} showZoomRuler
whether or not the zoom ruler is shown.
Default Value:
false

{Boolean} singleMode
whether or not the editor is in single line mode.
Default Value:
false

{Function} statusReporter
a status reporter.

{Boolean} tabMode
whether or not the tab keypress is consumed by the view or is used for focus traversal.
Default Value:
true

{Number} tabSize
The number of spaces in a tab.
Default Value:
4

{String} themeClass
the CSS class for the view theming.

{String} title
the editor title.
Default Value:
""

{Boolean} wrapable
whether or not the view is wrappable.
Default Value:
false

{Boolean} wrapMode
whether or not the view wraps lines.
Default Value:
false

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 18 2017 12:15:10 GMT-0500 (EST)