isEmpty ifFalse -> notEmpty
authorClaus Gittinger <cg@exept.de>
Mon, 20 Mar 2006 09:38:37 +0100
changeset 2041 80ddafc474fb
parent 2040 2df23da6484a
child 2042 963042f2c474
isEmpty ifFalse -> notEmpty
UIObjectView.st
--- a/UIObjectView.st	Tue Mar 14 20:03:57 2006 +0100
+++ b/UIObjectView.st	Mon Mar 20 09:38:37 2006 +0100
@@ -2506,7 +2506,7 @@
 
         aBlock value.
 
-        transaction isEmpty ifFalse:[
+        transaction notEmpty ifTrue:[
             identifier := identifier + 1.
             transaction identifier:identifier.
             history addLast:transaction.
@@ -2775,9 +2775,15 @@
 !UIObjectView::UndoHistory::Transaction methodsFor:'testing'!
 
 isEmpty
-    "returns true if no undo action is registered
-    "
+    "returns true if no undo action is registered"
+
     ^ actions isNil
+!
+
+notEmpty
+    "returns true if no undo action is registered"
+
+    ^ actions notNil
 ! !
 
 !UIObjectView class methodsFor:'documentation'!