This is it!
| filterWizard view |
browser := GLMTabulator withStatusbar.
filterWizard := BMBugMapsFilterWizard new.
browser
row: [ :row | row column: #map span: 2.5; column: #metrics] span: 1.5;
row: [ :row | row column: #code span: 2.5; column: #chart].
browser transmit
to: #map;
andShow: [ :b | self distributionMapIn: b].
filterWizard := BMBugMapsFilterWizard new
glamourWizard
initialExtent: 400@200;
yourself.
browser
spawn: [:a|
filterWizard
atEndDo:[:wizardInformation| .
self distributionMapIn: a with: (wizardInformation at: #textEntry).
a update.].
] entitled: 'Filter'.
where self is an instance of GLMBrowserTemplate.
On 19 December 2011 10:51, Tudor Girba <tudor(a)tudorgirba.com> wrote:
Hi,
If the first parameter is a browser, something is probably wrong (you
might be using the wrong api). Please send also the browser code.
Cheers,
Doru
2011/12/19 Júlio Martins <jleandro.martins(a)gmail.com>om>:
Ok!
distributionMapIn: a with: aNumber
"in this point the method is executed"
^a mondrian
painting: [ :view :model | self halt.
view shape rectangle withoutBorder.
view nodes: (model allModelNamespaces asSet sortedAs: [ :x :y | x
numberOfClasses > y numberOfClasses ]) forEach: [ :each |
view shape label.
view node: each name.
view node: each forIt: [
view interaction menu: #mooseMenu.
view shape rectangle size: 12;
if: [ :c | c numberOfMethods = 0 ] fillColor: Color green;
if: [ :c | c numberOf Methods >= 1 and: [ c numberOfBugs < 3 ] ]
fillColor:
Color orange;
if: [ :c | c numberOfMethods >= 3 ] fillColor: Color red.
view nodes: ((each classes select: [ :class | class numberOf Methods >=
aNumber]) sortedAs: #numberOfMethods).
view gridLayout gapSize: 2 ].
view verticalLineLayout ].
view gridLayout ].
the first method parameter is a GLMTabulator, The block started by the
method "halt" is not executed, I no wonder why!
On 19 December 2011 10:15, Tudor Girba <[hidden email]> wrote:
>
> Hi,
>
> I am sorry, but I cannot understand what the issue is. Could you
> provide some runnable code?
>
> Cheers,
> Doru
>
>
> 2011/12/19 Júlio Martins <[hidden email]>:
>
> > Hi people!
> >
> > I was with problems figure out the question "how to update the
> > distribution
> > map from a secundary wizard? So searching for the solution i found a
> > another
> > problem: when a mondrian receive a message to GLMTabulator and send a
> > message to method "painting:[:a :b| ... ]" , the execution flow
doesn't
> > enter on block, where is all commands to
build my new distribution map
> > view.
> > The code is like this sample:
> >
> >
> > GLMTabulator new mondrian
> > painting:[:a :b|
> > ....
> > "here the flow doesn't enter, why?"
> > ]
> >
> > Before this block, the flow is normal and works, but have no commands
to
execute
i need help of you.
________________________________
View this message in context: Glamour-Merilin-Mondrian
Sent from the Moose mailing list archive at
Nabble.com.
_______________________________________________
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
________________________________
View this message in context: Re: [Moose-dev] Re:
Glamour-Merilin-Mondrian
Sent from the Moose mailing list archive at
Nabble.com.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
www.tudorgirba.com
"Every thing has its own flow"
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev