ImageEditor.st
changeset 574 8d82e8f101c1
parent 573 b169cae28157
child 579 0f86dfeb6890
--- a/ImageEditor.st	Tue Feb 03 22:45:45 1998 +0100
+++ b/ImageEditor.st	Tue Feb 03 23:38:42 1998 +0100
@@ -779,6 +779,7 @@
                           #'label:' 'Undo'
                           #'value:' #undo
                           #'activeHelpKey:' #editUndo
+                          #'enabled:' #valueOfCanUndo
                       )
                        #(#MenuItem
                           #'label:' '-'
@@ -1610,8 +1611,21 @@
 
 loadFromClass
 
-    self loadFromInClassesOf: #Object.
-   
+    (self imageEditView loadFromClass) notNil
+    ifTrue:
+    [
+        self image notNil
+        ifTrue:
+        [
+            self listOfColors contents: self image usedColors asSet asOrderedCollection.
+            self findColorMapMode.
+            self updateInputFieldsAndLabelsAndHistory.
+        ]
+        ifFalse:
+        [
+            self updateForNoneImage
+        ]
+    ]
 !
 
 loadFromFile
@@ -1673,25 +1687,6 @@
     ]
 !
 
-loadFromInClassesOf: aSuperclassOrSymbol
-
-    (self imageEditView loadFromInClassesOf: aSuperclassOrSymbol) notNil
-    ifTrue:
-    [
-        self image notNil
-        ifTrue:
-        [
-            self listOfColors contents: self image usedColors asSet asOrderedCollection.
-            self findColorMapMode.
-            self updateInputFieldsAndLabelsAndHistory.
-        ]
-        ifFalse:
-        [
-            self updateForNoneImage
-        ]
-    ]
-!
-
 loadFromMessage: aMessage
 
     (self imageEditView loadFromMessage: aMessage) notNil