Uses of Class
org.eclipse.text.edits.TextEdit
Package
Description
Provides the API for manipulating file buffers.
Provides a framework for creating and manipulating text documents.
Application programmer interface to implement semantic preserving workspace transformations.
Provides support for describing and applying textual document editions.
-
Uses of TextEdit in org.eclipse.core.filebuffers.manipulation
Modifier and TypeClassDescriptionclass
Multi-text edit with progress reporting. -
Uses of TextEdit in org.eclipse.jface.text
Modifier and TypeMethodDescriptionstatic boolean
RewriteSessionEditProcessor.isLargeEdit
(TextEdit edit) Returnstrue
if the passed edit is considered large,false
otherwise.ModifierConstructorDescriptionRewriteSessionEditProcessor
(IDocument document, TextEdit root, int style) Constructs a new edit processor for the given document. -
Uses of TextEdit in org.eclipse.ltk.core.refactoring
Modifier and TypeMethodDescriptionTextChange.getEdit()
Returns the root text edit.TextChange.getPreviewEdit
(TextEdit original) Returns the edit that got executed during preview generation instead of the given original.TextEdit[]
TextChange.getPreviewEdits
(TextEdit[] originals) Returns the edits that were executed during preview generation instead of the given array of original edits.TextEdit[]
TextEditBasedChangeGroup.getTextEdits()
Returns the text edits managed by the underlying text edit group.Modifier and TypeMethodDescriptionvoid
Adds the given edit to the edit tree.TextChange.getPreviewEdit
(TextEdit original) Returns the edit that got executed during preview generation instead of the given original.TextEdit[]
TextChange.getPreviewEdits
(TextEdit[] originals) Returns the edits that were executed during preview generation instead of the given array of original edits.void
Sets the root text edit that should be applied to the document represented by this text change.ModifierConstructorDescriptionCategorizedTextEditGroup
(String name, TextEdit[] edits, GroupCategorySet groupCategories) Creates a new text edit group with the given name, array of edits and a set of group categories.CategorizedTextEditGroup
(String name, TextEdit edit, GroupCategorySet groupCategories) Creates a new text edit group with a name, a singleTextEdit
and a set of group categories. -
Uses of TextEdit in org.eclipse.text.edits
Modifier and TypeClassDescriptionfinal class
ACopyingRangeMarker
can be used to track positions when executing text edits.final class
A copy source edit denotes the source of a copy operation.final class
A copy target edit denotes the target of a copy operation.final class
Text edit to delete a range in a document.final class
Text edit to insert a text at a given position in a document.final class
A move source edit denotes the source of a move operation.final class
A move target edit denotes the target of a move operation.class
A multi-text edit can be used to aggregate several edits into one edit.final class
A range marker can be used to track positions when executing text edits.final class
Text edit to replace a range in a document with a different string.final class
This class encapsulates the reverse changes of an executed text edit tree.Modifier and TypeMethodDescriptionfinal TextEdit
TextEdit.copy()
Creates a deep copy of the edit tree rooted at this edit.protected TextEdit
CopyingRangeMarker.doCopy()
protected TextEdit
CopySourceEdit.doCopy()
protected TextEdit
CopyTargetEdit.doCopy()
protected TextEdit
DeleteEdit.doCopy()
protected TextEdit
InsertEdit.doCopy()
protected TextEdit
MoveSourceEdit.doCopy()
protected TextEdit
MoveTargetEdit.doCopy()
protected TextEdit
MultiTextEdit.doCopy()
protected TextEdit
RangeMarker.doCopy()
protected TextEdit
ReplaceEdit.doCopy()
protected abstract TextEdit
TextEdit.doCopy()
Creates and returns a copy of this edit.protected TextEdit
UndoEdit.doCopy()
MalformedTreeException.getChild()
Returns the child edit that caused the exception.final TextEdit[]
TextEdit.getChildren()
Returns the edit's children.Returns the copy for the original text edit.MalformedTreeException.getParent()
Returns the parent edit that caused the exception.final TextEdit
TextEdit.getParent()
Returns the edit's parent.final TextEdit
TextEdit.getRoot()
Returns the root edit of the edit tree.TextEditProcessor.getRoot()
Returns the edit processor's root edit.TextEdit[]
TextEditGroup.getTextEdits()
Returns an array ofTextEdit
s containing the edits managed by this group.TextEditCopier.perform()
Performs the actual copying.final TextEdit
TextEdit.removeChild
(int index) Removes the edit specified by the given index from the list of children.final TextEdit[]
TextEdit.removeChildren()
Removes all child edits from and returns them.Modifier and TypeMethodDescriptionfinal void
Adds the given editchild
to this edit.final void
TextEdit.addChildren
(TextEdit[] edits) Adds all edits inedits
to this edit.void
TextEditGroup.addTextEdit
(TextEdit edit) Adds the givenTextEdit
to this group.protected boolean
TextEditProcessor.considerEdit
(TextEdit edit) Tells whether this processor considers the given edit.final boolean
boolean
Returnstrue
if the edit covers the given editother
.Returns the copy for the original text edit.static IRegion
TextEdit.getCoverage
(TextEdit[] edits) Returns the text range spawned by the given array of text edits.static IRegion
void
Visits the given text edit following the type-specific visit (afterendVisit
).void
Visits the given text edit prior to the type-specific visit.final boolean
TextEdit.removeChild
(TextEdit child) Removes the first occurrence of the given child from the list of children.boolean
TextEditGroup.removeTextEdit
(TextEdit edit) Removes the givenTextEdit
from this group.boolean
Visits the given text edit.ModifierConstructorDescriptionMalformedTreeException
(TextEdit parent, TextEdit child, String message) Constructs a new malformed tree exception.protected
Copy constructorTextEditCopier
(TextEdit edit) Constructs a newTextEditCopier
for the given edit.TextEditGroup
(String name, TextEdit edit) Creates a new text edit group with a name and a singleTextEdit
.TextEditGroup
(String name, TextEdit[] edits) Creates a new text edit group with the given name and array of edits.TextEditProcessor
(IDocument document, TextEdit root, int style) Constructs a new edit processor for the given document.