Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-02-03 10:22:20 +0000
committerLars Vogel2021-02-03 10:22:20 +0000
commitd8e056ddd680917bc58c8616e877aabe1fa63e35 (patch)
treeacac56f4d5ec1faa7cb771fb03a865b7590dd128
parent7a5be6b73ed0e729d3387e8bfd93ddf55d896d96 (diff)
downloadeclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.tar.gz
eclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.tar.xz
eclipse.platform.text-d8e056ddd680917bc58c8616e877aabe1fa63e35.zip
DocumentUndoManager Done during testing of JDT clean-up actions for "Convert fields into local variables if the use is only local" Change-Id: I11b17cffe370909f2b9caffc317a660c6fe444cd Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
index 2e803c272a8..4aa59f9b860 100644
--- a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
+++ b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
@@ -606,7 +606,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
@Override
public void documentChanged(DocumentEvent event) {
- fPreservedRedoModificationStamp= event.getModificationStamp();
+ long fPreservedRedoModificationStamp= event.getModificationStamp();
// record the current valid state for the top operation in case it
// remains the
@@ -741,11 +741,6 @@ public class DocumentUndoManager implements IDocumentUndoManager {
private UndoableTextChange fLastAddedTextEdit= null;
/**
- * The document modification stamp for redo.
- */
- private long fPreservedRedoModificationStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;
-
- /**
* Text buffer to collect viewer content which has been replaced
*/
private StringBuilder fPreservedTextBuffer;

Back to the top