Moved up #restarted to SimpleView
authorStefan Vogel <sv@exept.de>
Thu, 31 Mar 2005 11:27:35 +0200
changeset 4372 30c22dddafcf
parent 4371 ed8758656587
child 4373 86b1fce12e7f
Moved up #restarted to SimpleView
PopUpView.st
SimpleView.st
--- a/PopUpView.st	Wed Mar 30 16:50:19 2005 +0200
+++ b/PopUpView.st	Thu Mar 31 11:27:35 2005 +0200
@@ -441,10 +441,6 @@
     super realize.
 !
 
-restarted
-    ^ self
-!
-
 unmap
     haveControl := false.
 
@@ -458,5 +454,5 @@
 !PopUpView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.55 2004-03-09 14:29:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/PopUpView.st,v 1.56 2005-03-31 09:26:36 stefan Exp $'
 ! !
--- a/SimpleView.st	Wed Mar 30 16:50:19 2005 +0200
+++ b/SimpleView.st	Thu Mar 31 11:27:35 2005 +0200
@@ -6256,6 +6256,18 @@
     controller := myController.
 
     "Modified: / 6.5.1999 / 13:11:07 / cg"
+!
+
+restarted
+    "sent by my windowGroup, when restarted from an image.
+     Nothing done here, but can be redefined to perform any actions
+     required to reset some state after an image-restart.
+
+     Only top views (usually instances of TopView) get this message sent.
+     Since SimpleViews can act as a top view, too this message is implemented
+     in SimpleView"
+
+    ^ self
 ! !
 
 !SimpleView methodsFor:'keyboard control'!
@@ -9582,7 +9594,7 @@
 !SimpleView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.517 2005-03-07 16:56:53 penk Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/SimpleView.st,v 1.518 2005-03-31 09:27:35 stefan Exp $'
 ! !
 
 SimpleView initialize!