*** empty log message ***
authorClaus Gittinger <cg@exept.de>
Fri, 25 Feb 2005 12:44:26 +0100
changeset 1526 f980a40d3c69
parent 1525 6384f91af636
child 1527 1af959ba1fe6
*** empty log message ***
UndoSupport.st
--- a/UndoSupport.st	Fri Feb 25 12:00:07 2005 +0100
+++ b/UndoSupport.st	Fri Feb 25 12:44:26 2005 +0100
@@ -179,10 +179,16 @@
 !
 
 undoableDo:aBlock
+    self undoableDo:aBlock info:nil.
+!
+
+undoableDo:aBlock info:aString
     transaction notNil ifTrue:[
+        infoOfCurrentTransaction := infoOfCurrentTransaction ? aString.
         aBlock value.
     ] ifFalse:[
         transaction := OrderedCollection new.
+        infoOfCurrentTransaction := aString.
         aBlock 
             ensure:[  
                 self closeTransactionAndAddTo:undoList.
@@ -222,5 +228,5 @@
 !UndoSupport class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic2/UndoSupport.st,v 1.4 2005-02-25 11:00:07 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic2/UndoSupport.st,v 1.5 2005-02-25 11:44:26 cg Exp $'
 ! !