How to get the workspace poolvariables?

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

How to get the workspace poolvariables?

Costas Menico-2
I want to retrieve the current workspace's PoolDictionary by
evaluating some method in the workspace. I execute the following.

SmalltalkWorkspaceDocument allInstances inspect.

I can see the instances and respective workspacePool but how can I
programmatically check which  is the current workspace?

Thanks

Costas


Reply | Threaded
Open this post in threaded view
|

Re: How to get the workspace poolvariables?

Ian Bartholomew
Costas,

> I can see the instances and respective workspacePool but how can I
> programmatically check which  is the current workspace?

Try

SmalltalkWorkspace allInstances detect: [:each |
    each view topView isForeground]

Ian


Reply | Threaded
Open this post in threaded view
|

Re: How to get the workspace poolvariables?

Costas Menico-2
"Ian Bartholomew" <[hidden email]> wrote:

>Costas,
>
>> I can see the instances and respective workspacePool but how can I
>> programmatically check which  is the current workspace?
>
>Try
>
>SmalltalkWorkspace allInstances detect: [:each |
>    each view topView isForeground]
>

That's intense... Thank you.

Regards,

Costas