postBuildCode cleanup
authorClaus Gittinger <cg@exept.de>
Wed, 15 Feb 2006 21:12:43 +0100
changeset 1992 f026ffeb44db
parent 1991 feaad07cb3cf
child 1993 249b56817140
postBuildCode cleanup
MenuEditor.st
--- a/MenuEditor.st	Wed Feb 15 18:25:02 2006 +0100
+++ b/MenuEditor.st	Wed Feb 15 21:12:43 2006 +0100
@@ -2147,6 +2147,17 @@
     ^ super closeRequest
 !
 
+commonPostBuild
+    self autoAcceptOnSelectionChange addDependent:self.
+    self autoAcceptOnSelectionChange value ifTrue:[
+        (builder componentAt:'okButton') label:(resources string:'Apply')
+    ].
+
+    self isStandAlone ifFalse:[
+        self halt.
+    ].
+!
+
 initialize
     "setup aspects, ...
     "
@@ -2185,15 +2196,6 @@
     aNoteBook tabLabelInset:16@4.
 !
 
-postBuildWith:aBuilder
-    super postBuildWith: aBuilder.
-
-    self autoAcceptOnSelectionChange addDependent:self.
-    self autoAcceptOnSelectionChange value ifTrue:[
-        (builder componentAt:'okButton') label:(resources string:'Apply')
-    ].
-!
-
 postOpenWith:aBuilder
     "reset keyboardProcessor for menuBar
     "