Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 612 by damien.c...@gmail.com: [Glamour] Tags do not play well with trees http://code.google.com/p/moose-technology/issues/detail?id=612
With the following browser:
1- Open the 'odd' root node 2- Click the 'odd' tag 3- Open the 'some' root node 4- You will see some nodes that don't have the 'odd' tag which may be a bug 5- Click the 'even' tag 6- You won't see anything anymore as they are no number which is both 'even' and 'odd' ; there is no way to go back
treeWithTags <glmBrowser: 'Tree withTags' input: '(1 to: 10)'> " self new treeWithTags openOn: #(1 2 3 4 5 6 7 8 9 10) " |browser model| model := Dictionary new. model at: #some put: #(1 2 3 4). model at: #even put: #(2 6 8). model at: #odd put: #(3 7 9). browser := GLMTabulator new. browser column: #one. browser transmit to: #one; andShow: [ :a | browser tree display: [model keys]; children: [:key | key isNumber ifFalse: [model at: key] ]; tags: [:item | item isNumber ifTrue: [item even ifTrue: [#('even')] ifFalse: [#('odd')]] ifFalse: [#()]]]. ^ browser