pass special dictionary as bindings-environmnt
authorClaus Gittinger <cg@exept.de>
Fri, 30 Jan 1998 15:19:38 +0100
changeset 536 3991e37ec19f
parent 535 1caf545614c5
child 537 c39e2ceeaaea
pass special dictionary as bindings-environmnt (passing the builder)
UISpecificationTool.st
--- a/UISpecificationTool.st	Fri Jan 30 15:05:54 1998 +0100
+++ b/UISpecificationTool.st	Fri Jan 30 15:19:38 1998 +0100
@@ -419,7 +419,15 @@
         aspects     notNil ifTrue:[ aspects     release ].
 
         specification  := aSpec.
-        aspects        := IdentityDictionary new.
+        
+        "/ some tricky specs need the builder
+        "/ during the addBindings phase.
+        "/ This is passed down in a special UIBindingsDictionary
+        "/ (remain backward compatible)
+
+        aspects        := UISpecification newBindingsDictionary.
+        aspects builder:builder.
+
         specChannel    := specification asValue.
         specification class addBindingsTo:aspects for:specification channel:specChannel.
         aspects do:[:el| el addDependent:self ].
@@ -429,6 +437,8 @@
         (builder componentAt:#Frame) destroySubViews.
         selection := nil.
     ].
+
+    "Modified: / 30.1.1998 / 13:50:51 / cg"
 ! !
 
 !UISpecificationTool methodsFor:'accessing channels'!