Hi,

You can try this:

composite := GLMCompositePresentation new.
composite pharoPlayground
     title: 'Script';
     variableBindings: [ { #x -> 1. #y -> 2 } ].
composite
 openOn: 'x+y'.

For the moment only script presentations can have variables.

Btw  #pharoPlayground  and #rubricText will be deprecated in the latest
version in favour of #pharoScript and #text

Cheers,
Andrei

On Fri, Oct 30, 2015 at 11:14 AM, Torsten Bergmann <[email protected]> wrote:

> Hi,
>
> if one has an inspector extension that shows a textual iVar of an object
> representing code (using #rubricText, #pharoMethod or  #pharoPlayground)
> as in this example:
>
>  gtInspectorSourceIn: composite
>         <gtInspectorPresentationOrder: 30>
>         ^ composite pharoMethod
>                 title: 'Source';
>                 smalltalkClass: [ self methodClass ];
>                 display: [ self getSource ];
>                 act: [ self browse ] icon: GLMUIThemeExtraIcons
> glamorousBrowse entitled: 'Browse'
>
> What is the best/correct way to set the iVar when the text is typed so the
> state of the iVar represents the lively editing in the inspector extension?
>
> Or is there a way to realize this somehow with Glamour ports using the
> #text port?
>
> Thanks
> T.
>

Reply via email to