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."
Hi Damien,
The format issue is now solved. The convention is that first you get the item as the first parameter and then the "from" ports.
Cheers, Doru
On 4 Sep 2009, at 10:33, Tudor Girba wrote:
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."
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- www.tudorgirba.com
"Problem solving efficiency grows with the abstractness level of problem understanding."