| Home >> All >> org >> eclipse >> text |
| | org.eclipse.text.edits.* (22) |
Package Samples:
org.eclipse.text.edits
Classes:
TextEdit: A text edit describes an elementary text manipulation operation. Edits are executed by applying them to a document (e.g. an instance of IDocument ). Text edits form a tree. Clients can navigate the tree upwards, from child to parent, as well as downwards. Newly created edits are unparented. New edits are added to the tree by calling one of the add methods on a parent edit. An edit tree is well formed in the following sense: a parent edit covers all its children children don't overlap an edit with length 0 can't have any children Any manipulation of the tree that violates one of the above requirements ...
TextEditVisitor: A visitor for text edits. For each different concrete text edit type T there is a method: public boolean visit( T node) - Visits the given edit to perform some arbitrary operation. If true is returned, the given edit's child edits will be visited next; however, if false is returned, the given edit's child edits will not be visited. The default implementation provided by this class calls a generic method visitNode( Testedit node) . Subclasses may reimplement these method as needed. In addition, there are methods for visiting text edits in the abstract, regardless of node type: public void preVisit(TextEdit ...
MoveSourceEdit: A move source edit denotes the source of a move operation. Move source edits are only valid inside an edit tree if they have a corresponding traget edit. Furthermore the corresponding target edit can't be a direct or indirect child of the source edit. Violating one of two requirements will result in a MalformedTreeException when executing the edit tree. A move source edit can manange an optional source modifier. A source modifier can provide a set of replace edits which will to applied to the source before it gets inserted at the target position.
CopySourceEdit: A copy source edit denotes the source of a copy operation. Copy source edits are only valid inside an edit tree if they have a corresponding traget edit. Furthermore the corresponding target edit can't be a direct or indirect child of the source edit. Violating one of two requirements will result in a MalformedTreeException when executing the edit tree. A copy source edit can manange an optional source modifier. A source modifier can provide a set of replace edits which will to applied to the source before it gets inserted at the target position.
MoveTargetEdit: A move target edit denotes the target of a move operation. Move target edits are only valid inside an edit tree if they have a corresponding source edit. Furthermore a target edit can't can't be a direct or indirect child of its associated source edit. Violating one of two requirements will result in a MalformedTreeException when executing the edit tree. Move target edits can't be used as a parent for other edits. Trying to add an edit to a move target edit results in a MalformedTreeException as well.
CopyTargetEdit: A copy target edit denotes the target of a copy operation. Copy target edits are only valid inside an edit tree if they have a corresponding source edit. Furthermore a target edit can't can't be a direct or indirect child of the associated source edit. Violating one of two requirements will result in a MalformedTreeException when executing the edit tree. Copy target edits can't be used as a parent for other edits. Trying to add an edit to a copy target edit results in a MalformedTreeException as well.
MultiTextEdit: A multi-text edit can be used to aggregate several edits into one edit. The edit itself doesn't modify a document. Clients are allowed to implement subclasses of a multi-text edit.Subclasses must implement doCopy() to ensure the a copy of the right type is created. Not implementing doCopy() in subclasses will result in an assertion failure during copying.
UndoEdit: This class encapsulates the reverse changes of an executed text edit tree. To apply an undo memento to a document use method apply(IDocument) . Clients can add additional children to an undo edit nor can they add an undo edit as a child to another edit. Doing so results in both cases in a MalformedTreeException .
TextEditGroup: A text edit group combines a list of TextEdit s and a name into a single object. The name must be a human readable string use to present the text edit group in the user interface.
ISourceModifier: A source modifier can be used to modify the source of a move or copy edit before it gets inserted at the target position. This is useful if the text to be copied has to be modified before it is inserted without changing the original source.
CopyingRangeMarker: A CopyingRangeMarker can be used to track positions when executing text edits. Additionally a copying range marker stores a local copy of the text it captures when it gets executed.
TextEditProcessor: A TextEditProcessor manages a set of edits and applies them as a whole to an IDocument . This class isn't intended to be subclassed.
TextEditCopier: Copies a tree of text edits. A text edit copier keeps a map between original and new text edits. It can be used to map a copy back to its original edit.
InsertEdit: Text edit to insert a text at a given position in a document. An insert edit is equivalent to ReplaceEdit(offset, 0, text)
MalformedTreeException: Thrown to indicate that an edit got added to a parent edit but the child edit somehow conflicts with the parent or one of it siblings.
DeleteEdit: Text edit to delete a range in a document. A delete edit is equivalent to ReplaceEdit( offset, length, "") .
RangeMarker: A range marker can be used to track positions when executing text edits.
ReplaceEdit: Text edit to replace a range in a document with a different string.
UndoCollector
TreeIterationInfo
TextEditMessages
EditDocument
| Home | Contact Us | Privacy Policy | Terms of Service |