Package | Description |
---|---|
org.eclipse.core.filebuffers.manipulation |
Provides the API for manipulating file buffers.
|
org.eclipse.jface.text |
Provides a framework for creating and manipulating text documents.
|
org.eclipse.ltk.core.refactoring |
Application programmer interface to implement semantic preserving workspace transformations.
|
org.eclipse.text.edits |
Provides support for describing and applying textual document editions.
|
Modifier and Type | Class and Description |
---|---|
class |
MultiTextEditWithProgress
Multi-text edit with progress reporting.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
RewriteSessionEditProcessor.isLargeEdit(TextEdit edit)
Returns
true if the passed edit is considered large,
false otherwise. |
Constructor and Description |
---|
RewriteSessionEditProcessor(IDocument document,
TextEdit root,
int style)
Constructs a new edit processor for the given document.
|
Modifier and Type | Method and Description |
---|---|
TextEdit |
TextChange.getEdit()
Returns the root text edit.
|
TextEdit |
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 Type | Method and Description |
---|---|
void |
TextChange.addEdit(TextEdit edit)
Adds the given edit to the edit tree.
|
TextEdit |
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 |
TextChange.setEdit(TextEdit edit)
Sets the root text edit that should be applied to the
document represented by this text change.
|
Constructor and Description |
---|
CategorizedTextEditGroup(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 single
TextEdit
and a set of group categories. |
Modifier and Type | Class and Description |
---|---|
class |
CopyingRangeMarker
A
CopyingRangeMarker can be used to track positions when executing
text edits. |
class |
CopySourceEdit
A copy source edit denotes the source of a copy operation.
|
class |
CopyTargetEdit
A copy target edit denotes the target of a copy operation.
|
class |
DeleteEdit
Text edit to delete a range in a document.
|
class |
InsertEdit
Text edit to insert a text at a given position in a
document.
|
class |
MoveSourceEdit
A move source edit denotes the source of a move operation.
|
class |
MoveTargetEdit
A move target edit denotes the target of a move operation.
|
class |
MultiTextEdit
A multi-text edit can be used to aggregate several edits into
one edit.
|
class |
RangeMarker
A range marker can be used to track positions when executing
text edits.
|
class |
ReplaceEdit
Text edit to replace a range in a document with a different
string.
|
class |
UndoEdit
This class encapsulates the reverse changes of an executed text
edit tree.
|
Modifier and Type | Method and Description |
---|---|
TextEdit |
TextEdit.copy()
Creates a deep copy of the edit tree rooted at this
edit.
|
protected abstract TextEdit |
TextEdit.doCopy()
Creates and returns a copy of this edit.
|
protected TextEdit |
MoveSourceEdit.doCopy() |
protected TextEdit |
MoveTargetEdit.doCopy() |
protected TextEdit |
MultiTextEdit.doCopy() |
protected TextEdit |
CopyTargetEdit.doCopy() |
protected TextEdit |
CopySourceEdit.doCopy() |
protected TextEdit |
DeleteEdit.doCopy() |
protected TextEdit |
UndoEdit.doCopy() |
protected TextEdit |
ReplaceEdit.doCopy() |
protected TextEdit |
CopyingRangeMarker.doCopy() |
protected TextEdit |
RangeMarker.doCopy() |
protected TextEdit |
InsertEdit.doCopy() |
TextEdit |
MalformedTreeException.getChild()
Returns the child edit that caused the exception.
|
TextEdit[] |
TextEdit.getChildren()
Returns the edit's children.
|
TextEdit |
TextEditCopier.getCopy(TextEdit original)
Returns the copy for the original text edit.
|
TextEdit |
TextEdit.getParent()
Returns the edit's parent.
|
TextEdit |
MalformedTreeException.getParent()
Returns the parent edit that caused the exception.
|
TextEdit |
TextEdit.getRoot()
Returns the root edit of the edit tree.
|
TextEdit |
TextEditProcessor.getRoot()
Returns the edit processor's root edit.
|
TextEdit[] |
TextEditGroup.getTextEdits()
Returns an array of
TextEdit s containing
the edits managed by this group. |
TextEdit |
TextEditCopier.perform()
Performs the actual copying.
|
TextEdit |
TextEdit.removeChild(int index)
Removes the edit specified by the given index from the list
of children.
|
TextEdit[] |
TextEdit.removeChildren()
Removes all child edits from and returns them.
|
Modifier and Type | Method and Description |
---|---|
void |
TextEdit.addChild(TextEdit child)
Adds the given edit
child to this edit. |
void |
TextEdit.addChildren(TextEdit[] edits)
Adds all edits in
edits to this edit. |
void |
TextEditGroup.addTextEdit(TextEdit edit)
Adds the given
TextEdit to this group. |
protected boolean |
TextEditProcessor.considerEdit(TextEdit edit)
Tells whether this processor considers the given edit.
|
boolean |
TextEdit.covers(TextEdit other)
Returns
true if the edit covers the given edit
other . |
boolean |
MultiTextEdit.covers(TextEdit other)
Returns
true if the edit covers the given edit
other . |
TextEdit |
TextEditCopier.getCopy(TextEdit original)
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 |
MoveSourceEdit.intersect(TextEdit op1,
TextEdit op2) |
void |
TextEditVisitor.postVisit(TextEdit edit)
Visits the given text edit following the type-specific visit
(after
endVisit ). |
void |
TextEditVisitor.preVisit(TextEdit edit)
Visits the given text edit prior to the type-specific visit.
|
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 given
TextEdit from this group. |
boolean |
TextEditVisitor.visitNode(TextEdit edit)
Visits the given text edit.
|
Constructor and Description |
---|
MalformedTreeException(TextEdit parent,
TextEdit child,
String message)
Constructs a new malformed tree exception.
|
TextEdit(TextEdit source)
Copy constructor
|
TextEditCopier(TextEdit edit)
Constructs a new
TextEditCopier for the
given edit. |
TextEditGroup(String name,
TextEdit edit)
Creates a new text edit group with a name and a single
TextEdit . |
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.
|
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.