Hi Damien,
This is a known issue and it will be tackled:
http://code.google.com/p/moose-technology/issues/detail?id=111
Cheers,
Doru
On 4 Sep 2009, at 09:57, Damien Cassou wrote:
Hi,
imagine I want to merge the method categories and selectors panes in a
single list for a code browser. I would like selectors to appear with
their categories in parenthesis (as in NewSpeak if you had a look).
For the class GLMSmalltalkExamples, that would be:
metacello (others)
messageTally (st examples)
stCodeBrowser (st examples)
...
To do that, I think the #format: option is too limited:
browser
showOn: #methods; from: #classes;
using: [
browser list
when: [ :class | class notNil];
format: [:selector | selector, ' (', (NEED-THE-CLASS-HERE
organization categoryOfElement: selector),')'];
display: [ :class | class selectors asSortedCollection ].
how do I get the class as a #format: block argument?
--
Damien Cassou
http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry
--
www.tudorgirba.com
"When people care, great things can happen."