problem related to showOnly in Glamour

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

problem related to showOnly in Glamour

Usman Bhatti
I think I have stumbled upon a problem in Glamour. When selecting an entity that is in the model but not shown in the Tree presentation, there is a DNU when setting the selection port to the entity. To reproduce the problem:

- execute the following script in Moose then right click and select "select in tree" on a number not displayed in the Tree presentation.

The problem might arise due to the fact that all model entities do not have their morph nodes when using showOnly option. Can you please have a look?
 

| browser items |
browser := GLMTabulator withStatusbar.
items := 50.
browser column: #one; column: #two.
browser transmit to: #one; andShow: [ :a |
(a tree)
title: 'Tree';
showOnly: 30;
display: [:each | 1 to: items];
children: [ :item :x :level | level > 1
ifTrue: [ #() ]
ifFalse: [ 1 to: item ]]].
browser transmit to: #two; from: #one; andShow: [ :a |
a mondrian 
title: 'Numbers in Mondrian list';
painting: [:view :number |
view shape rectangle width: 20; text: #printString; withoutBorder.
view interaction 
item: 'Select in tree' action: [:each | ((browser paneNamed: #one) port:#selection) value:each ].
view nodes: (1 to: 40).
view gridLayout.
]
].
browser openOn: 1

tx,
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: problem related to showOnly in Glamour

Tudor Girba-2
Thanks Usman. I created an issue with a test case:
http://code.google.com/p/moose-technology/issues/detail?id=905

Cheers,
Doru


On Jan 24, 2013, at 6:11 PM, Usman Bhatti <[hidden email]> wrote:

> I think I have stumbled upon a problem in Glamour. When selecting an entity that is in the model but not shown in the Tree presentation, there is a DNU when setting the selection port to the entity. To reproduce the problem:
>
> - execute the following script in Moose then right click and select "select in tree" on a number not displayed in the Tree presentation.
>
> The problem might arise due to the fact that all model entities do not have their morph nodes when using showOnly option. Can you please have a look?
>  
>
> | browser items |
> browser := GLMTabulator withStatusbar.
> items := 50.
> browser column: #one; column: #two.
>
> browser transmit to: #one; andShow: [ :a |
> (a tree)
> title: 'Tree';
> showOnly: 30;
> display: [:each | 1 to: items];
> children: [ :item :x :level | level > 1
> ifTrue: [ #() ]
> ifFalse: [ 1 to: item ]]].
>
> browser transmit to: #two; from: #one; andShow: [ :a |
> a mondrian
> title: 'Numbers in Mondrian list';
> painting: [:view :number |
> view shape rectangle width: 20; text: #printString; withoutBorder.
> view interaction
> item: 'Select in tree' action: [:each | ((browser paneNamed: #one) port:#selection) value:each ].
> view nodes: (1 to: 40).
> view gridLayout.
> ]
> ].
> browser openOn: 1
>
> tx,
> Usman
> _______________________________________________
> 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