Uses of Class
org.eclipse.jface.text.Position
Package
Description
Support for compare and merge viewers which show the
content side-by-side.
Provides support for finding and displaying the differences
between hierarchically structured data.
Provides a framework for creating and manipulating text documents.
Provides a content formatter add-on for an
ITextViewer
.Application programming interfaces for interaction
with the Eclipse text editor's linked position support.
This package provides an implementation of projection documents.
Provides a framework for rule based text scanning
and uses the framework to provide rule-driven default implementations of
IPresentationDamager
, IPresentationRepairer
and IDocumentPartitioner
.Provides a framework for connecting document regions
with annotations and for displaying those.
This package provides the UI part for projection documents of which the most important part is the projection viewer.
Application programming interfaces for interaction
with the Eclipse text template support.
Provides a framework for text editors obeying to the
desktop rules.
-
Uses of Position in org.eclipse.compare.contentmergeviewer
-
Uses of Position in org.eclipse.compare.internal
Modifier and TypeMethodDescriptionMergeSourceViewer.getLineRange
(Position p, Point region) void
MergeSourceViewer.setLineBackground
(Position position, Color c) void
void
MergeSourceViewer.setSelection
(Position position) -
Uses of Position in org.eclipse.compare.structuremergeviewer
Modifier and TypeMethodDescriptionDocumentRangeNode.getAppendPosition()
Returns the position that has been set withsetAppendPosition
.DocumentRangeNode.getRange()
-
Uses of Position in org.eclipse.jface.text
Modifier and TypeClassDescriptionclass
Convenience class for positions that have a type, similar toITypedRegion
.Modifier and TypeFieldDescriptionprotected Position
TextViewer.fMarkPosition
The mark position.protected Position
DefaultPositionUpdater.fOriginalPosition
Caches the original state of the investigated positionprotected Position
DefaultPositionUpdater.fPosition
Caches the currently investigated positionModifier and TypeMethodDescriptionPosition[]
AbstractDocument.getPositions
(String category) Position[]
AbstractDocument.getPositions
(String category, int offset, int length, boolean canStartBefore, boolean canEndAfter) Returns all positions of the given category that are inside the given region.Position[]
IDocument.getPositions
(String category) Returns all positions of the given position category.Modifier and TypeMethodDescriptionAbstractDocument.getDocumentManagedPositions()
Returns all positions managed by the document grouped by category.Modifier and TypeMethodDescriptionvoid
AbstractDocument.addPosition
(String category, Position position) void
AbstractDocument.addPosition
(Position position) void
IDocument.addPosition
(String category, Position position) Adds the position to the specified position category of the document.void
IDocument.addPosition
(Position position) Adds the position to the document's default position category.void
IPaintPositionManager.managePosition
(Position position) Starts managing the given position untilunmanagePosition
is called.protected IRegion
TextViewer.modelRange2WidgetRange
(Position modelPosition) Same asTextViewer.modelRange2WidgetRange(IRegion)
just for aPosition
.void
AbstractDocument.removePosition
(String category, Position position) void
AbstractDocument.removePosition
(Position position) void
IDocument.removePosition
(String category, Position position) Removes the given position from the specified position category.void
IDocument.removePosition
(Position position) Removes the given position from the document's default position category.void
IPaintPositionManager.unmanagePosition
(Position position) Stops managing the given position.Modifier and TypeMethodDescriptionprotected int
AbstractDocument.computeIndexInPositionList
(List<? extends Position> positions, int offset) Deprecated.protected int
AbstractDocument.computeIndexInPositionList
(List<? extends Position> positions, int offset, boolean orderedByOffset) Computes the index in the list of positions at which a position with the given position would be inserted. -
Uses of Position in org.eclipse.jface.text.codemining
Modifier and TypeMethodDescriptionAbstractCodeMining.getPosition()
ICodeMining.getPosition()
Returns the line position where code mining must be displayed in the line spacing area.ModifierConstructorDescriptionprotected
AbstractCodeMining
(Position position, ICodeMiningProvider provider, Consumer<MouseEvent> action) CodeMining constructor to locate the code mining in a given position.LineContentCodeMining
(Position position, ICodeMiningProvider provider) CodeMining constructor to locate the code mining in a given position.LineContentCodeMining
(Position position, ICodeMiningProvider provider, Consumer<MouseEvent> action) CodeMining constructor to locate the code mining in a given position.LineHeaderCodeMining
(Position position, ICodeMiningProvider provider, Consumer<MouseEvent> action) CodeMining constructor to locate the code mining before the given line at the supplied position. -
Uses of Position in org.eclipse.jface.text.formatter
Modifier and TypeMethodDescriptionprotected boolean
ContentFormatter.positionAboutToBeAdded
(IDocument document, String category, Position position) The given position is about to be added to the given position category of the given document. -
Uses of Position in org.eclipse.jface.text.link
Modifier and TypeClassDescriptionclass
APosition
on a document that knows which document it is registered with and has a sequence number for tab stops.class
LinkedPosition with added completion proposals.Modifier and TypeMethodDescriptionLinkedModeModel.getGroupForPosition
(Position position) Returns the linked position group that containsposition
, ornull
ifposition
is not contained in any group within this model. -
Uses of Position in org.eclipse.jface.text.projection
Modifier and TypeMethodDescriptionprotected final Position[]
ProjectionDocument.getFragments()
Returns the fragments of the master documents.ChildDocument.getParentDocumentRange()
Returns the parent document range of this child document.protected final Position[]
ProjectionDocument.getSegments()
Returns the segments of this projection document. -
Uses of Position in org.eclipse.jface.text.rules
Modifier and TypeMethodDescriptionprotected final Position[]
FastPartitioner.getPositions()
Returns the partitioners positions. -
Uses of Position in org.eclipse.jface.text.source
Modifier and TypeFieldDescriptionprotected Map<Annotation,
Position> AnnotationModel.fAnnotations
Deprecated.since 3.0 usegetAnnotationMap
insteadSourceViewer.fSelections
Stack of saved selections in the underlying documentModifier and TypeMethodDescriptionAnnotationModel.getPosition
(Annotation annotation) IAnnotationModel.getPosition
(Annotation annotation) Returns the position associated with the given annotation.AnnotationModelEvent.getPositionOfRemovedAnnotation
(Annotation annotation) Returns the position of the removed annotation at that point in time when the annotation has been removed.Modifier and TypeMethodDescriptionIAnnotationMap.entrySet()
The returned set is not synchronized on this annotation map's lock object.IAnnotationMap.values()
The returned collection is not synchronized on this annotation map's lock object.IAnnotationMap.valuesIterator()
Returns an iterator for a copy of this annotation map's values.Modifier and TypeMethodDescriptionvoid
AnnotationModel.addAnnotation
(Annotation annotation, Position position) protected void
AnnotationModel.addAnnotation
(Annotation annotation, Position position, boolean fireModelChanged) Adds the given annotation to this model.void
IAnnotationModel.addAnnotation
(Annotation annotation, Position position) Adds a annotation to this annotation model.protected void
AnnotationModel.addPosition
(IDocument document, Position position) Adds the given position to the default position category of the given document.void
AnnotationModelEvent.annotationRemoved
(Annotation annotation, Position position) Adds the given annotation to the set of annotations that are reported as being removed from the model.void
AnnotationModel.modifyAnnotationPosition
(Annotation annotation, Position position) protected void
AnnotationModel.modifyAnnotationPosition
(Annotation annotation, Position position, boolean fireModelChanged) Modifies the associated position of the given annotation to the given position.void
IAnnotationModelExtension.modifyAnnotationPosition
(Annotation annotation, Position position) Modifies the position associated with the given annotation to equal the given position.protected void
AnnotationModel.removePosition
(IDocument document, Position position) Removes the given position from the default position category of the given document.Modifier and TypeMethodDescriptionvoid
AnnotationModel.replaceAnnotations
(Annotation[] annotationsToRemove, Map<? extends Annotation, ? extends Position> annotationsToAdd) protected void
AnnotationModel.replaceAnnotations
(Annotation[] annotationsToRemove, Map<? extends Annotation, ? extends Position> annotationsToAdd, boolean fireModelChanged) Replaces the given annotations in this model and if advised fires a model change event.void
IAnnotationModelExtension.replaceAnnotations
(Annotation[] annotationsToRemove, Map<? extends Annotation, ? extends Position> annotationsToAdd) Adds and removes annotations to/from this annotation model in a single step. -
Uses of Position in org.eclipse.jface.text.source.inlined
Modifier and TypeMethodDescriptionAbstractInlinedAnnotation.getPosition()
Returns the position where the annotation must be drawn.static Position
Returns the line position by taking care or not of of leading spaces.Modifier and TypeMethodDescription<T extends AbstractInlinedAnnotation>
TInlinedAnnotationSupport.findExistingAnnotation
(Position pos) Returns the existing codemining annotation with the given position information and null otherwise.ModifierConstructorDescriptionprotected
AbstractInlinedAnnotation
(Position position, ISourceViewer viewer) Inlined annotation constructor.LineContentAnnotation
(Position position, ISourceViewer viewer) Line content annotation constructor.LineHeaderAnnotation
(Position position, ISourceViewer viewer) Line header annotation constructor. -
Uses of Position in org.eclipse.jface.text.source.projection
Modifier and TypeMethodDescriptionProjectionViewer.computeCollapsedRegionAnchor
(Position position) Computes the collapsed region anchor for the given position.Modifier and TypeMethodDescriptionProjectionViewer.computeCollapsedRegion
(Position position) Computes the region that must be collapsed when the given position is the position of an expanded projection annotation.ProjectionViewer.computeCollapsedRegionAnchor
(Position position) Computes the collapsed region anchor for the given position.Modifier and TypeMethodDescriptionvoid
ProjectionAnnotationModel.modifyAnnotations
(Annotation[] deletions, Map<? extends Annotation, ? extends Position> additions, Annotation[] modifications) Modifies the annotation model. -
Uses of Position in org.eclipse.jface.text.templates
ModifierConstructorDescriptionDocumentTemplateContext
(TemplateContextType type, IDocument document, Position position) Creates a document template context. -
Uses of Position in org.eclipse.ui.texteditor
Modifier and TypeMethodDescriptionprotected Position
AbstractMarkerAnnotationModel.createPositionFromMarker
(IMarker marker) Creates and returns the character position of the given marker based on its attributes.AbstractMarkerAnnotationModel.getMarkerPosition
(IMarker marker) Returns the position known to this annotation model for the given marker.Modifier and TypeMethodDescriptionprotected Annotation
AbstractTextEditor.findAnnotation
(int offset, int length, boolean forward, Position annotationPosition) Returns the annotation closest to the given range respecting the given direction.protected boolean
MarkerRulerAction.includesRulerLine
(Position position, IDocument document) Checks whether a position includes the ruler's line of activity.protected final boolean
SelectMarkerRulerAction.includesRulerLine
(Position position, IDocument document) Checks whether a position includes the ruler's line of activity.boolean
AbstractMarkerAnnotationModel.updateMarker
(IMarker marker, IDocument document, Position position) Deprecated.useupdateMarker(IDocument, IMarker, Position)
instead.boolean
AbstractMarkerAnnotationModel.updateMarker
(IDocument document, IMarker marker, Position position) Updates the given marker according to the given position in the given document.boolean
BasicMarkerUpdater.updateMarker
(IMarker marker, IDocument document, Position position) boolean
IMarkerUpdater.updateMarker
(IMarker marker, IDocument document, Position position) Updates the given marker according to the position of the given document.
AbstractDocument.computeIndexInPositionList(List, int, boolean)