glamour help

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

glamour help

Usman Bhatti
Hello,

I am working to add a new tab in Moose Finder's pane to display code: So when I select a class, I want to show its methods as a tree and clicking on each method shows the code of the method. 
Here is the code of my attempt:

mooseFinderChildrenTreeIn2: composite 
<moosePresentationOrder: 80>

composite tabulator with: [:t | 
t row: #methodList; row: #code; title: 'Details'.
t transmit 
to: #methodList
andShow: [ :a |  a tree display: [:each | each methods]]
].


Problem: my method is not executing the display block and hence the tabulator tab does not show the list (I can see empty tabulator). I think its related to embedding a tabulator within a composite presentation and transmission of values but I do not precisely where to look to correct it.

thanx,

Usman

_______________________________________________
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 help

Tudor Girba-2
Hi,

This is one of the places in Glamour I do not like. When you have a browser embedded like this, you have to start it explicitly.

mooseFinderChildrenTreeIn2: composite
        <moosePresentationOrder: 80>
        composite tabulator with: [:t |
        t row: #methodList; row: #code; title: 'Details'.
        t transmit
                to: #methodList;
                andShow: [ :a |  a tree display: [:each | each methods]]
                ].
        composite startOn: self


Cheers,
Doru


On 11 May 2012, at 12:21, Usman Bhatti wrote:

> Hello,
>
> I am working to add a new tab in Moose Finder's pane to display code: So when I select a class, I want to show its methods as a tree and clicking on each method shows the code of the method.
> Here is the code of my attempt:
>
> mooseFinderChildrenTreeIn2: composite
> <moosePresentationOrder: 80>
>
> composite tabulator with: [:t |
> t row: #methodList; row: #code; title: 'Details'.
> t transmit
> to: #methodList
> andShow: [ :a |  a tree display: [:each | each methods]]
> ].
>
>
>
> Problem: my method is not executing the display block and hence the tabulator tab does not show the list (I can see empty tabulator). I think its related to embedding a tabulator within a composite presentation and transmission of values but I do not precisely where to look to correct it.
>
> thanx,
>
> Usman
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Next time you see your life passing by, say 'hi' and get to know her."




_______________________________________________
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 help

Usman Bhatti
On Fri, May 11, 2012 at 1:54 PM, Tudor Girba <[hidden email]> wrote:
Hi,

This is one of the places in Glamour I do not like. When you have a browser embedded like this, you have to start it explicitly.

mooseFinderChildrenTreeIn2: composite
       <moosePresentationOrder: 80>
       composite tabulator with: [:t |
       t row: #methodList;     row: #code; title: 'Details'.
       t transmit
               to: #methodList;
               andShow: [ :a |  a tree display: [:each | each methods]]
               ].
       composite startOn: self

It worked. thanx.
 


Cheers,
Doru


On 11 May 2012, at 12:21, Usman Bhatti wrote:

> Hello,
>
> I am working to add a new tab in Moose Finder's pane to display code: So when I select a class, I want to show its methods as a tree and clicking on each method shows the code of the method.
> Here is the code of my attempt:
>
> mooseFinderChildrenTreeIn2: composite
>       <moosePresentationOrder: 80>
>
>       composite tabulator with: [:t |
>       t row: #methodList;     row: #code; title: 'Details'.
>       t transmit
>               to: #methodList
>               andShow: [ :a |  a tree display: [:each | each methods]]
>               ].
>
>
>
> Problem: my method is not executing the display block and hence the tabulator tab does not show the list (I can see empty tabulator). I think its related to embedding a tabulator within a composite presentation and transmission of values but I do not precisely where to look to correct it.
>
> thanx,
>
> Usman
> _______________________________________________
> Moose-dev mailing list
> [hidden email]
> https://www.iam.unibe.ch/mailman/listinfo/moose-dev

--
www.tudorgirba.com

"Next time you see your life passing by, say 'hi' and get to know her."




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


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