Glamour: Workspace with variable bindings

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

Glamour: Workspace with variable bindings

ngarbezza
Hi all,

I'm starting with Glamour, particularly I'm interested in the
GLMBasicExamples>>smalltalkCode example

My question is: is it possible to have access to variable bindings, in
order to show them, for instance, in an inspector?

Thanks in advance!
Nahuel
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour: Workspace with variable bindings

Tudor Girba-2
Hi Nahuel,

It's more the other way around. You should have the bindings before opening the SmalltalkCodePresentation, and thus you should be able to display them in other places as well.

For an example, look at the GLMScriptingEditorTemplate hierarchy. These are the editors based on Glamour for manipulating: Mondrian, EyeSee and Glamour scripts. For these we have a pane that displays the bindings, and these bindings are also used in the SmalltalkCodePresentation.

Cheers,
Doru



On 10 Feb 2012, at 18:44, Nahuel Garbezza wrote:

> Hi all,
>
> I'm starting with Glamour, particularly I'm interested in the
> GLMBasicExamples>>smalltalkCode example
>
> My question is: is it possible to have access to variable bindings, in
> order to show them, for instance, in an inspector?
>
> Thanks in advance!
> Nahuel
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"We cannot reach the flow of things unless we let go."




_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour: Workspace with variable bindings

ngarbezza
On 10 February 2012 17:04, Tudor Girba <[hidden email]> wrote:
> Hi Nahuel,
>
> It's more the other way around. You should have the bindings before opening the SmalltalkCodePresentation, and thus you should be able to display them in other places as well.
>
> For an example, look at the GLMScriptingEditorTemplate hierarchy. These are the editors based on Glamour for manipulating: Mondrian, EyeSee and Glamour scripts. For these we have a pane that displays the bindings, and these bindings are also used in the SmalltalkCodePresentation.
>
> Cheers,
> Doru
>

Ok, I got it. I have another question: Why the GLMSmalltalkCodeModel
doesn't have the "mustDeclareVariables" functionallity present in
Workspace?. I mean, evaluating

a := 3.

being 'a' undeclared, in a Workspace it assigns 'a' to the value 3,
while in the Glamour workspace it raises "Unknown variable". I'm
looking for the Workspace behaviour.

Thanks

Nahuel

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Reply | Threaded
Open this post in threaded view
|

Re: Glamour: Workspace with variable bindings

Tudor Girba-2
Good question.

Well, I did not do it because I did not know how to do it :). If you
would like to give it a try, please go ahead.

Cheers,
Doru


On Thu, Feb 16, 2012 at 2:18 PM, Nahuel Garbezza <[hidden email]> wrote:

> On 10 February 2012 17:04, Tudor Girba <[hidden email]> wrote:
>> Hi Nahuel,
>>
>> It's more the other way around. You should have the bindings before opening the SmalltalkCodePresentation, and thus you should be able to display them in other places as well.
>>
>> For an example, look at the GLMScriptingEditorTemplate hierarchy. These are the editors based on Glamour for manipulating: Mondrian, EyeSee and Glamour scripts. For these we have a pane that displays the bindings, and these bindings are also used in the SmalltalkCodePresentation.
>>
>> Cheers,
>> Doru
>>
>
> Ok, I got it. I have another question: Why the GLMSmalltalkCodeModel
> doesn't have the "mustDeclareVariables" functionallity present in
> Workspace?. I mean, evaluating
>
> a := 3.
>
> being 'a' undeclared, in a Workspace it assigns 'a' to the value 3,
> while in the Glamour workspace it raises "Unknown variable". I'm
> looking for the Workspace behaviour.
>
> Thanks
>
> Nahuel
>
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev



--
www.tudorgirba.com

"Every thing has its own flow"

_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev