Class MultiTextEditWithProgress
java.lang.Object
org.eclipse.text.edits.TextEdit
org.eclipse.text.edits.MultiTextEdit
org.eclipse.core.filebuffers.manipulation.MultiTextEditWithProgress
Multi-text edit with progress reporting.
- Since:
- 3.1
-
Field Summary
Fields inherited from class org.eclipse.text.edits.TextEdit
CREATE_UNDO, NONE, UPDATE_REGIONS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal UndoEdit
apply
(IDocument document, int style, IProgressMonitor progressMonitor) final UndoEdit
apply
(IDocument document, IProgressMonitor progressMonitor) protected void
Hook method called when the document updating of a child edit has been completed.protected void
Hook method called when the region updating of a child edit has been completed.Methods inherited from class org.eclipse.text.edits.MultiTextEdit
accept0, canZeroLengthCover, checkIntegrity, covers, doCopy, getLength, getOffset
Methods inherited from class org.eclipse.text.edits.TextEdit
accept, acceptChildren, addChild, addChildren, apply, apply, copy, equals, getChildren, getChildrenSize, getCoverage, getExclusiveEnd, getInclusiveEnd, getParent, getRegion, getRoot, hasChildren, hashCode, isDeleted, moveTree, postProcessCopy, removeChild, removeChild, removeChildren, toString
-
Constructor Details
-
MultiTextEditWithProgress
-
-
Method Details
-
apply
public final UndoEdit apply(IDocument document, IProgressMonitor progressMonitor) throws MalformedTreeException, BadLocationException -
apply
public final UndoEdit apply(IDocument document, int style, IProgressMonitor progressMonitor) throws MalformedTreeException, BadLocationException -
childDocumentUpdated
protected void childDocumentUpdated()Description copied from class:TextEdit
Hook method called when the document updating of a child edit has been completed. When a client callsTextEdit.apply(IDocument)
orTextEdit.apply(IDocument, int)
this method is calledTextEdit.getChildrenSize()
times.May be overridden by subclasses of
MultiTextEdit
.- Overrides:
childDocumentUpdated
in classTextEdit
-
childRegionUpdated
protected void childRegionUpdated()Description copied from class:TextEdit
Hook method called when the region updating of a child edit has been completed. When a client callsTextEdit.apply(IDocument)
this method is calledTextEdit.getChildrenSize()
times. When callingTextEdit.apply(IDocument, int)
this method is calledTextEdit.getChildrenSize()
times, when the style parameter contains theTextEdit.UPDATE_REGIONS
flag.May be overridden by subclasses of
MultiTextEdit
.- Overrides:
childRegionUpdated
in classTextEdit
-