Oct. 4, 2014
6:46 p.m.
May be this is the occasion to create a WorkspaceModel and support this behavior. Stef On 4/10/14 17:09, Peter Uhnák wrote:
Hi,
I'm trying to preset variables to TextModel but I'm not sure if/how can such thing be achieved.
With Workspace (in pre-GT Pharo) I could do
ws := Workspace openContents: 'a'. b := Dictionary new. b add: (WorkspaceVariable key: #a value: 42). ws setBindings: b.
Unfortunately Workspace isn't Spec's ComposableModel so I can't just reuse it. Is something similar possible with TextModel? Perhaps somehow changing model to Workspace (without actually opening the workspace) or something?
Inspector seems to do something like that but my investigation ended up in OpalCompiler which is way over my head. :(
Thanks, Peter