Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2007-10-23 02:48:21 -0400
committerDani Megert2007-10-23 02:48:21 -0400
commitdbbe6326b93bdf3f49e00c4eff128802403af3b9 (patch)
tree09be82265ca0aef2c9f038b7b0845383b2d0db35 /org.eclipse.text/src/org/eclipse/text/undo
parent3c128b11e463927bf9522892601f642f79297e87 (diff)
downloadeclipse.platform.text-dbbe6326b93bdf3f49e00c4eff128802403af3b9.tar.gz
eclipse.platform.text-dbbe6326b93bdf3f49e00c4eff128802403af3b9.tar.xz
eclipse.platform.text-dbbe6326b93bdf3f49e00c4eff128802403af3b9.zip
Fixed bug 206305: [implementation] IDocumentUndoListener not receiving DocumentUndoEvent.ABOUT_TO_REDO events
Diffstat (limited to 'org.eclipse.text/src/org/eclipse/text/undo')
-rw-r--r--org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java6
1 files changed, 3 insertions, 3 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 21f5956a2..928915df6 100644
--- a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
+++ b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation and others.
+ * Copyright (c) 2006, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -290,6 +290,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
*/
public IStatus redo(IProgressMonitor monitor, IAdaptable uiInfo) {
if (isValid()) {
+ fDocumentUndoManager.fireDocumentUndo(fStart, fText, fPreservedText, uiInfo, DocumentUndoEvent.ABOUT_TO_REDO, false);
redoTextChange();
fDocumentUndoManager.resetProcessChangeState();
fDocumentUndoManager.fireDocumentUndo(fStart, fText, fPreservedText, uiInfo, DocumentUndoEvent.REDONE, false);
@@ -490,8 +491,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
c.redoTextChange();
}
fDocumentUndoManager.resetProcessChangeState();
- fDocumentUndoManager.fireDocumentUndo(c.fStart, c.fText, c.fPreservedText, uiInfo,
- DocumentUndoEvent.REDONE, true);
+ fDocumentUndoManager.fireDocumentUndo(c.fStart, c.fText, c.fPreservedText, uiInfo, DocumentUndoEvent.REDONE, true);
}
return Status.OK_STATUS;

Back to the top