[Glass] Displaying Dynamic Instance Variables in Seaside Inspector

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Glass] Displaying Dynamic Instance Variables in Seaside Inspector

Reg Krock-4
Dale,

I made a change to the following method so the inspector displays dynamicInstVars in the seaside inspector:

This is in the 'seaside-gemStone-tools-production’ package.

Object>>inspectorFields
        | members |
        members := Array new writeStream.
        self class allInstVarNames withIndexDo: [ :each :index |
                members nextPut: each -> (self instVarAt: index) ].
        self dynamicInstanceVariables withIndexDo: [:each :index |
                members nextPut: each -> (self dynamicInstVarAt: each) ].
        self class isVariable ifTrue: [
                1 to: self size do: [ :index |
                        members nextPut: index -> (self at: index) ] ].
        ^ members contents

If this okay would it be possible for you to add this to the standard code.

If there is a better way to send this change to you please let me know.

Regards,

Reg
_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass