Class orion.textview.FoldingAnnotation
This object represents a folding annotation.
Defined in: </shared/eclipse/e4/orion/I201110211442/plugins/org.eclipse.orion.client.editor/web/orion/textview/annotations.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.textview.FoldingAnnotation(projectionModel, type, start, end, expandedHTML, expandedStyle, collapsedHTML, collapsedStyle)
Constructs a new folding annotation.
|
Method Attributes | Method Name and Description |
---|---|
collapse()
Collapses the annotation.
|
|
expand()
Expands the annotation.
|
Class Detail
orion.textview.FoldingAnnotation(projectionModel, type, start, end, expandedHTML, expandedStyle, collapsedHTML, collapsedStyle)
Constructs a new folding annotation.
- Parameters:
- {orion.textview.ProjectionTextModel} projectionModel
- The projection text model.
- {String} type
- The annotation type.
- {Number} start
- The start offset of the annotation in the text model.
- {Number} end
- The end offset of the annotation in the text model.
- {String} expandedHTML
- The HTML displayed for this annotation when it is expanded.
- {orion.textview.Style} expandedStyle
- The style information for the annotation when it is expanded.
- {String} collapsedHTML
- The HTML displayed for this annotation when it is collapsed.
- {orion.textview.Style} collapsedStyle
- The style information for the annotation when it is collapsed.
Method Detail
collapse()
Collapses the annotation.
expand()
Expands the annotation.