Class Index | File Index

## Classes

- _global_
- Array
- Boolean
- Date
- Function
- javascript.ASTManager
- javascript.Indexer
- javascript.JavaScriptOccurrences
- javascript.JSOutliner
- javascript.Summary
- Object
- org.eclipse.orion.client.cf.CFService
- orion.breadcrumbs.BreadCrumbs
- orion.browse.FileBrowser
- orion.browse.FileBrowserOptions
- orion.BrowseView
- orion.cm.Configuration
- orion.cm.ConfigurationAdmin
- orion.cm.ConfigurationProperties
- orion.cm.ManagedService
- orion.commandregistry.CommandRegistry
- orion.commandregistry.ParameterCollector
- orion.commands.Command
- orion.commands.CommandInvocation
- orion.commands.CommandParameter
- orion.commands.ParametersDescription
- orion.commands.URLBinding
- orion.compare.CompareCommandFactory
- orion.compare.CompareSyntaxHighlighter
- orion.compare.CompareView
- orion.compare.CompareViewOptions
- orion.compare.DiffProvider
- orion.compare.FileOptions
- orion.compare.rulers.CompareRuler
- orion.compare.rulers.LineNumberCompareRuler
- orion.compare.toggleableCompareView
- orion.compare.TwoWayCompareView
- orion.compareUtils
- orion.core.ContentType
- orion.core.ContentTypeRegistry
- orion.core.TypeDef
- orion.core.TypeDefProperties
- orion.core.TypeDefRegistry
- orion.Deferred
- orion.dialogs.DialogService
- orion.DiffTreeNavigator.DiffTreeNavigator
- orion.DiffTreeNavigator.inlineDiffBlockFeeder
- orion.DiffTreeNavigator.TwoWayDiffBlockFeeder
- orion.edit.Dispatcher
- orion.edit.EditorContext
- orion.editor.ActionDescription
- orion.editor.Annotation
- orion.editor.AnnotationIterator
- orion.editor.AnnotationModel
- orion.editor.AnnotationRuler
- orion.editor.AnnotationStyler
- orion.editor.AnnotationType
- orion.editor.AnnotationTypeList
- orion.editor.AsyncStyler
- orion.editor.BaseEditor
- orion.editor.BlurEvent
- orion.editor.ContentAssist
- orion.editor.ContentAssistMode
- orion.editor.ContentAssistProvider
- orion.editor.ContentAssistProvider.Context
- orion.editor.ContentAssistProviderInfo
- orion.editor.ContentAssistWidget
- orion.editor.ContextMenuEvent
- orion.editor.CssContentAssistProvider
- orion.editor.DestroyEvent
- orion.editor.EditOptions
- orion.editor.Editor
- orion.editor.EventTarget
- orion.editor.FindIterator
- orion.editor.FindOptions
- orion.editor.FocusEvent
- orion.editor.FoldingAnnotation
- orion.editor.HTMLContentAssistProvider
- orion.editor.InputManager
- orion.editor.KeyEvent
- orion.editor.LineNumberRuler
- orion.editor.LineStyleEvent
- orion.editor.ModelChangedEvent
- orion.editor.ModelChangingEvent
- orion.editor.ModifyEvent
- orion.editor.OverviewRuler
- orion.editor.Projection
- orion.editor.ProjectionTextModel
- orion.editor.Ruler
- orion.editor.ScrollEvent
- orion.editor.Selection
- orion.editor.SelectionEvent
- orion.editor.Style
- orion.editor.StyleRange
- orion.editor.StyleReadyEvent
- orion.editor.StyleReadyEvent#LineStyle
- orion.editor.TextChange
- orion.editor.TextMateStyler
- orion.editor.TextModel
- orion.editor.TextTheme
- orion.editor.TextView
- orion.editor.TextViewOptions
- orion.editor.TextViewShowOptions
- orion.editor.ThemeChangedEvent
- orion.editor.ThemeStyleSheet
- orion.editor.UndoStack
- orion.editor.VerifyEvent
- orion.EditorView
- orion.EventTarget
- orion.explorer.Explorer
- orion.explorer.ExplorerFlatModel
- orion.explorer.ExplorerModel
- orion.explorer.FileExplorer
- orion.explorer.FileExplorer.ModelHandler
- orion.explorer.NavigatorRenderer
- orion.explorer.SelectionRenderer
- orion.explorerNavHandler.ExplorerNavDict
- orion.explorerNavHandler.ExplorerNavHandler
- orion.extensionCommands
- orion.fileClient.FileClient
- orion.fileCommands
- orion.fileUtils
- orion.FolderView
- orion.form
- orion.git.GitCommitExplorer
- orion.git.GitLogExplorer
- orion.git.GitRepositoryExplorer
- orion.git.GitReviewRequestExplorer
- orion.git.GitService
- orion.git.GitStatusExplorer
- orion.git.widgets.OpenCommitDialog
- orion.globalCommands
- orion.highlight.SyntaxHighlighter
- orion.KeyBinding
- orion.KeySequence
- orion.KeyStroke
- orion.links.TextLinkService
- orion.log.LogService
- orion.metatype.AttributeDefinition
- orion.metatype.MetaTypeRegistry
- orion.metatype.ObjectClassDefinition
- orion.mirror.CodeMirrorStyler
- orion.mirror.Mirror
- orion.mirror.MirrorLineStyle
- orion.mirror.ModeApplier
- orion.navoutliner.NavigationOutliner
- orion.objects
- orion.operation
- orion.outliner.Outliner
- orion.outliner.OutlineService
- orion.PageLinks
- orion.PageLinks.PageLinksInfo
- orion.parametercollectors.CommandParameterCollector
- orion.pluginregistry.Plugin
- orion.pluginregistry.PluginRegistry
- orion.preferences.Preferences
- orion.preferences.PreferencesService
- orion.problems.ProblemService
- orion.profile.usersClient.UsersClient
- orion.progress.ProgressService
- orion.projectClient.ProjectClient
- orion.Promise
- orion.ReadonlyEditorView
- orion.regex
- orion.search.AdvSearchOptRenderer
- orion.searchClient.Searcher
- orion.searches.SavedSearches
- orion.Searches.SearchBuilder
- orion.Searches.SearchList
- orion.searchResults.SearchResultsGenerator
- orion.searchUtils
- orion.searchUtils.SearchParams
- orion.selection.Selection
- orion.serviceregistry.ServiceEvent
- orion.serviceregistry.ServiceReference
- orion.serviceregistry.ServiceRegistration
- orion.serviceregistry.ServiceRegistry
- orion.ServiceTracker
- orion.settings.Setting
- orion.settings.SettingsRegistry
- orion.settings.ui.PropertyWidget
- orion.shell.Command
- orion.shell.Parameter
- orion.shell.ParameterType
- orion.shell.Shell
- orion.sidebar.MiniNavViewMode
- orion.sidebar.ProjectNavViewMode
- orion.sidebar.Sidebar
- orion.sidebar.ViewMode
- orion.sites.SiteClient
- orion.sites.SiteConfiguration
- orion.sites.SiteEditor
- orion.sites.SiteService
- orion.sites.ViewOnSiteTree
- orion.status.StatusReportingService
- orion.SyntaxChecker
- orion.tasks.TaskList
- orion.TreeModelIterator.TreeModelIterator
- orion.treetable.TableTree
- orion.uiUtils
- orion.URITemplate
- orion.webui.contextmenu.ContextMenu
- orion.webui.dialogs.ConfirmDialog
- orion.webui.dialogs.OpenResourceDialog
- orion.webui.dialogs.OperationsDialog
- orion.webui.dialogs.PromptDialog
- orion.webui.littlelib
- orion.webui.Splitter
- orion.widgets.browse.ResourceSelector
- orion.widgets.Filesystem.FilesystemSwitcher
- orion.widgets.Section
- orion.widgets.settings.SplitSelectionLayout
- orion.xhr
- orion.xhr.Result
- String

# Class orion.editor.Ruler

This interface represents a ruler for the text view.

A Ruler is a graphical element that is placed either on the left or on the right side of the view. It can be used to provide the view with per line decoration such as line numbering, bookmarks, breakpoints, folding disclosures, etc.

There are two types of rulers: page and document. A page ruler only shows the content for the lines that are visible, while a document ruler always shows the whole content.

See:
orion.editor.LineNumberRuler
orion.editor.AnnotationRuler
orion.editor.OverviewRuler
orion.editor.TextView
orion.editor.TextView#addRuler
Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/rulers.js>.

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| orion.editor.Ruler(annotationModel, rulerLocation, rulerOverview, rulerStyle) Constructs a new ruler.

Method Summary
Method Attributes | Method Name and Description
--- | ---
| addAnnotationType(type, priority) Adds an annotation type to the receiver.
| getAnnotationModel() Returns the annotation model.
| getAnnotations(startLine, endLine) Returns the annotations for a given line range merging multiple annotations when necessary.
| getAnnotationsByType(annotationModel, start, end) Returns an array of annotations in the specified annotation model for the given range of text sorted by type.
| getAnnotationTypePriority(type) Gets the annotation type priority.
| getLocation() Returns the ruler location.
| getOverview() Returns the ruler overview type.
| getRulerStyle() Returns the style information for the ruler.
| getView() Returns the text view.
| getWidestAnnotation() Returns the widest annotation which determines the width of the ruler.
| isAnnotationTypeVisible(type) Returns whether the receiver shows annotations of the specified type.
| removeAnnotationType(type) Removes an annotation type from the receiver.
| setAnnotationModel(annotationModel) Sets the annotation model for the ruler.
| setMultiAnnotation(annotation) Sets the annotation that is displayed when a given line contains multiple annotations.
| setMultiAnnotationOverlay(annotation) Sets the annotation that overlays a line with multiple annotations.
| setView(view) Sets the view for the ruler.

Event Summary
Event Attributes | Event Name and Description
--- | ---
| onClick(lineIndex, e) This event is sent when the user clicks a line annotation.
| onDblClick(lineIndex, e) This event is sent when the user double clicks a line annotation.
| onMouseMove(lineIndex, e) This event is sent when the user moves the mouse over a line annotation.
| onMouseOut(lineIndex, e) This event is sent when the mouse pointer exits a line annotation.
| onMouseOver(lineIndex, e) This event is sent when the mouse pointer enters a line annotation.

Class Detail
orion.editor.Ruler(annotationModel, rulerLocation, rulerOverview, rulerStyle)
Constructs a new ruler.

The default implementation does not implement all the methods in the interface and is useful only for objects implementing rulers.

Parameters:
{orion.editor.AnnotationModel} annotationModel
  the annotation model for the ruler.
{String} rulerLocation Optional, Default: "left"
  the location for the ruler.
{String} rulerOverview Optional, Default: "page"
  the overview for the ruler.
{orion.editor.Style} rulerStyle Optional
  the style for the ruler.

Method Detail
addAnnotationType(type, priority)
Adds an annotation type to the receiver.

Only annotations of the specified types will be shown by the receiver.

If the priority is not specified, the annotation type will be added to the end of the receiver's list (lowest pririoty).

Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.

Parameters:
{Object} type
  the annotation type to be shown
{Number} priority
  the priority for the annotation type

See:
  orion.editor.AnnotationTypeList#removeAnnotationType
  orion.editor.AnnotationTypeList#isAnnotationTypeVisible
  orion.editor.AnnotationTypeList#getAnnotationTypePriority

{orion.editor.AnnotationModel} getAnnotationModel()
Returns the annotation model.

Returns:
  {orion.editor.AnnotationModel} the ruler annotation model.

See:
  orion.editor.Ruler#setAnnotationModel

{orion.editor.Annotation[]} getAnnotations(startLine, endLine)
Returns the annotations for a given line range merging multiple annotations when necessary.

This method is called by the text view when the ruler is redrawn.

Parameters:
{Number} startLine
  the start line index
{Number} endLine
  the end line index

Returns:
  {orion.editor.Annotation[]} the annotations for the line range. The array might be sparse.

{orion.editor.Annotation[]} getAnnotationsByType(annotationModel, start, end)
Returns an array of annotations in the specified annotation model for the given range of text sorted by type.
Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.

Parameters:
{orion.editor.AnnotationModel} annotationModel
  the annotation model.
{Number} start
  the start offset of the range.
{Number} end
  the end offset of the range.

Returns:
  {orion.editor.Annotation[]} an annotation array.

getAnnotationTypePriority(type)
Gets the annotation type priority. The priority is determined by the order the annotation type is added to the receiver. Annotation types added first have higher priority.

Returns `0` if the annotation type is not added.

Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.

Parameters:
{Object} type
  the annotation type

See:
  orion.editor.AnnotationTypeList#addAnnotationType
  orion.editor.AnnotationTypeList#removeAnnotationType
  orion.editor.AnnotationTypeList#isAnnotationTypeVisible

{String} getLocation()
Returns the ruler location.

Returns:
  {String} the ruler location, which is either "left" or "right".

See:
  orion.editor.Ruler#getOverview

{String} getOverview()
Returns the ruler overview type.

Returns:
  {String} the overview type, which is either "page" or "document".

See:
  orion.editor.Ruler#getLocation

{orion.editor.Style} getRulerStyle()
Returns the style information for the ruler.

Returns:
  {orion.editor.Style} the style information.

{orion.editor.TextView} getView()
Returns the text view.

Returns:
  {orion.editor.TextView} the text view.

See:
  orion.editor.Ruler#setView

{orion.editor.Annotation} getWidestAnnotation()
Returns the widest annotation which determines the width of the ruler.

If the ruler does not have a fixed width it should provide the widest annotation to avoid the ruler from changing size as the view scrolls.

This method is called by the text view when the ruler is redrawn.

Returns:
  {orion.editor.Annotation} the widest annotation.

See:
  orion.editor.Ruler#getAnnotations

{Boolean} isAnnotationTypeVisible(type)
Returns whether the receiver shows annotations of the specified type.
Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.

Parameters:
{Object} type
  the annotation type

Returns:
  {Boolean} whether the specified annotation type is shown

See:
  orion.editor.AnnotationTypeList#addAnnotationType
  orion.editor.AnnotationTypeList#removeAnnotationType

removeAnnotationType(type)
Removes an annotation type from the receiver.
Defined in: </jobs/genie.eclipse.orion/orion-client/workspace/bundles/org.eclipse.orion.client.editor/web/orion/editor/annotations.js>.

Parameters:
{Object} type
  the annotation type to be removed

See:
  orion.editor.AnnotationTypeList#addAnnotationType
  orion.editor.AnnotationTypeList#isAnnotationTypeVisible

setAnnotationModel(annotationModel)
Sets the annotation model for the ruler.

Parameters:
{orion.editor.AnnotationModel} annotationModel
  the annotation model.

See:
  orion.editor.Ruler#getAnnotationModel

setMultiAnnotation(annotation)
Sets the annotation that is displayed when a given line contains multiple annotations. This annotation is used when there are different types of annotations in a given line.

Parameters:
{orion.editor.Annotation} annotation
  the annotation for lines with multiple annotations.

See:
  orion.editor.Ruler#setMultiAnnotationOverlay

setMultiAnnotationOverlay(annotation)
Sets the annotation that overlays a line with multiple annotations. This annotation is displayed on top of the computed annotation for a given line when there are multiple annotations of the same type in the line. It is also used when the multiple annotation is not set.

Parameters:
{orion.editor.Annotation} annotation
  the annotation overlay for lines with multiple annotations.

See:
  orion.editor.Ruler#setMultiAnnotation

setView(view)
Sets the view for the ruler.

This method is called by the text view when the ruler is added to the view.

Parameters:
{orion.editor.TextView} view
  the text view.

Event Detail
onClick(lineIndex, e)
This event is sent when the user clicks a line annotation.

Parameters:
{Number} lineIndex
  the line index of the annotation under the pointer.
{DOMEvent} e
  the click event.

onDblClick(lineIndex, e)
This event is sent when the user double clicks a line annotation.

Parameters:
{Number} lineIndex
  the line index of the annotation under the pointer.
{DOMEvent} e
  the double click event.

onMouseMove(lineIndex, e)
This event is sent when the user moves the mouse over a line annotation.

Parameters:
{Number} lineIndex
  the line index of the annotation under the pointer.
{DOMEvent} e
  the mouse move event.

onMouseOut(lineIndex, e)
This event is sent when the mouse pointer exits a line annotation.

Parameters:
{Number} lineIndex
  the line index of the annotation under the pointer.
{DOMEvent} e
  the mouse out event.

onMouseOver(lineIndex, e)
This event is sent when the mouse pointer enters a line annotation.

Parameters:
{Number} lineIndex
  the line index of the annotation under the pointer.
{DOMEvent} e
  the mouse over event.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon May 05 2014 22:06:15 GMT-0400 (EDT)