Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
Object that is responsible for verifying JavaScript text
|
|
Returns the rule object for ESLint
|
|
Return the best contentType match to the given filename or null if no match.
|
|
The raw rule object
|
|
Matches a comment delimiter (*) as the start of the line, and traverses up the lines to confirm if
it is a multi-line comment by matching the start of a block comment.
|
|
orion.shell.CompletionStatus.PARTIAL
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
|
|
Add the error if not already reported.
|
|
Generates an explorer showing the sites on each site service.
|
|
Tooltip support for text views
show() - Opens the tooltip
update() - Updates the content of the open tooltip
onHover() - Checks if the x,y coordinates are outside the current tooltip area and updates the tooltip if necessary
hide() - Closes the tooltip
isVisible() - Returns whether the tooltip is currently showing
The methods above ask for a tooltipInfo object, which must contain a callback function getTooltipInfo()
This function must return an info object with the following contents:
Info {
Contents {string, html element, annotation array, etc.
|
Method Attributes | Method Name and Description |
---|---|
_update(input)
|
|
assert(cond, text)
|
|
Returns the rectangle that the tooltip is anchored to, for example the text of the current annotation range
|
|
constructor(start, end, title)
|
|
error()
wraps logging in case we have the worker support turned on
|
|
findDeclaration(offset, ast, options)
Will attempt to find the declaration of the node at the given
offset.
|
|
getPrefix(buffer, context, kind)
computes the pprefix to use during content assist, performs special computation for jsdoc and
block comments that allow chars normal JS does not
|
|
Returns an editable ruleset to pass into verify() based on values set in the config settings
|
|
handler(event)
|
|
handleResult(result)
|
|
hasNext()
|
|
hide()
Hides the current tooltip (if it's showing)
|
|
insensitive(str)
|
|
isArray(ary)
|
|
Return whether the given line pixel position, relative to the document, is inside a line of the document
|
|
Returns a boolean indicating whether the tooltip is currently visible
|
|
listener()
|
|
log()
wraps logging in case we have the worker support turned on
|
|
Map()
|
|
nud()
|
|
onchange(e)
|
|
onClickThen(doIt)
|
|
onHover(target, giveFocus)
Show the tooltip using the given target information.
|
|
onload()
|
|
show(target, locked, giveFocus)
Show the tooltip using the given target information
|
|
skip()
|
|
sliceSource(source, index, last)
|
|
statusReporter(message, isError)
|
|
update(target, locked, giveFocus)
Updates the information in an already visible tooltip
|
Field Detail
eslint
Object that is responsible for verifying JavaScript text
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
{Object}
getESLintRules
Returns the rule object for ESLint
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Since:
- 7.0
getFilenameContentType
Return the best contentType match to the given filename or null if no match. Filename pattern checked first, then extension
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/contentTypes.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.core/web/orion/contentTypes.js>.
{Object}
getRules
The raw rule object
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
hasOwnProperty
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
JSLINT
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/jslintworker.js>.
match
Matches a comment delimiter (*) as the start of the line, and traverses up the lines to confirm if
it is a multi-line comment by matching the start of a block comment. If so, continue the
multi-line comment in the next line. Any text that follows after the caret is moved to the newly
added comment delimiter.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/actions.js>.
orion.shell.CompletionStatus.PARTIAL
the current text matches a subset of the initial characters of a valid
argument value (ie.- a value in the midst of being typed)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/shell/Shell.js>.
recordError
Add the error if not already reported.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Since:
- 5.0
SiteServicesExplorer
Generates an explorer showing the sites on each site service.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
SitesRenderer
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
SiteTreeModel
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/sitesExplorer.js>.
Tooltip
Tooltip support for text views
show() - Opens the tooltip
update() - Updates the content of the open tooltip
onHover() - Checks if the x,y coordinates are outside the current tooltip area and updates the tooltip if necessary
hide() - Closes the tooltip
isVisible() - Returns whether the tooltip is currently showing
The methods above ask for a tooltipInfo object, which must contain a callback function getTooltipInfo()
This function must return an info object with the following contents:
Info {
Contents {string, html element, annotation array, etc.} Contents to display, if undefined, the hover service will be asked for content
Context {source, offset, offsetStart, offsetEnd}} Information used to modify the tooltip position or contents
Position {String} One of left, right, top, bottom used to position the tooltip relative to the anchor area
AnchorArea {x, y, width, height} rectangle defining the source of the tooltip and where to position relative to
TooltipArea {x, y, width, height} rectangle to define the tooltip's exact placement rather than a relative position to the anchor
TooltipOffsetX {Number} Hint to move the tooltip position horizontally
TooltipOffsetY {Number} Hint to move the tooltip position vertically
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Method Detail
_update(input)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/plugins/webToolsPlugin.js.src.js>.
- Parameters:
- input
assert(cond, text)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Parameters:
- cond
- text
closeFunction()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commandRegistry.js>.
computeAnchorArea()
Returns the rectangle that the tooltip is anchored to, for example the text of the current annotation range
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
constructor(start, end, title)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.
- Parameters:
- start
- end
- title
error()
wraps logging in case we have the worker support turned on
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Since:
- 7.0
{Object|null}
findDeclaration(offset, ast, options)
Will attempt to find the declaration of the node at the given
offset. If it cannot be computed
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
null
is returned.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Parameters:
- {Number} offset
- The offset into the source file
- {Object} ast
- The AST to search
- {Object} options
- The options to search with
- Since:
- 7.0
- Returns:
- {Object|null} Return the found declaration AST node or
null
{String}
getPrefix(buffer, context, kind)
computes the pprefix to use during content assist, performs special computation for jsdoc and
block comments that allow chars normal JS does not
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/contentAssist/proposalUtils.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/contentAssist/proposalUtils.js>.
- Returns:
- {String} The prefix to use
{Object}
getRuleSet()
Returns an editable ruleset to pass into verify() based on values set in the config settings
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/plugins/webToolsPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/plugins/webToolsPlugin.js.src.js>.
- Returns:
- {Object} A ruleset based on the config settings
handler(event)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/sites/siteMappingsTable.js>.
- Parameters:
- event
handleResult(result)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/editorCommands.js>.
- Parameters:
- result
hasNext()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.webtools/web/webtools/plugins/webToolsPlugin.js.src.js>.
hide()
Hides the current tooltip (if it's showing)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
insensitive(str)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/keyAssist.js>.
- Parameters:
- str
isArray(ary)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Parameters:
- ary
isValidLineIndex(y)
Return whether the given line pixel position, relative to the document, is inside a line of the document
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/textView.js>.
- Parameters:
- y
- {Number} [y] the line pixel
- Returns:
- returns {Boolean} true if the pixel position is within a line of the document
{boolean}
isVisible()
Returns a boolean indicating whether the tooltip is currently visible
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Returns:
- {boolean} 'true' iff the tooltip is currently visible
listener()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.git/web/orion/git/widgets/gitCommitList.js>.
log()
wraps logging in case we have the worker support turned on
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Since:
- 7.0
Map()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
nud()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/jslintworker.js>.
onchange(e)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/widgets/themes/ThemeBuilder.js>.
- Parameters:
- e
onClickThen(doIt)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/commands.js>.
- Parameters:
- doIt
onHover(target, giveFocus)
Show the tooltip using the given target information. Only called for hover events.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- target
- giveFocus
onload()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/markdownView.js>.
show(target, locked, giveFocus)
Show the tooltip using the given target information
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- target
- The target through which the info is obtained
- locked
- If true locks the tooltip (never hides unless 'hide' is called)
- giveFocus
- If true forces the focus onto the tooltip (used for F2 processing)
skip()
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
sliceSource(source, index, last)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.javascript/web/javascript/plugins/javascriptPlugin.js.src.js>.
- Parameters:
- source
- index
- last
statusReporter(message, isError)
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.ui/web/orion/compare/compareView.js>.
- Parameters:
- message
- isError
update(target, locked, giveFocus)
Updates the information in an already visible tooltip
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
Defined in: </jobs/genie.orion/orion-client-stable/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/tooltip.js>.
- Parameters:
- target
- The target through which the info is obtained
- locked
- If true locks the tooltip (never hides unless 'hide' is called)
- giveFocus
- If true forces the focus onto the tooltip (used for F2 processing)