diff options
author | Dani Megert | 2007-10-23 06:48:21 +0000 |
---|---|---|
committer | Dani Megert | 2007-10-23 06:48:21 +0000 |
commit | dbbe6326b93bdf3f49e00c4eff128802403af3b9 (patch) | |
tree | 09be82265ca0aef2c9f038b7b0845383b2d0db35 /org.eclipse.text | |
parent | 3c128b11e463927bf9522892601f642f79297e87 (diff) | |
download | eclipse.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')
-rw-r--r-- | org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java | 6 |
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 21f5956a28e..928915df6a3 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; |