[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.imp] Re: What is a ModelTreeNode category?

seem good news. how about the next release?:)


"Robert M. Fuhrer" <rfuhrer@xxxxxxxxxxxxxx> 
??????:49905A5E.70304@xxxxxxxxxxxxxxxxx
> Ed Willink wrote:
>
> [Sorry for the delay in responding; we've been very busy
> working on various aspects of the next release over the last
> couple of months.]
>
> To answer the subject question, a ModelTreeNode category is a
> category associated with a given ModelTreeNode. It's presently
> used to permit the grouping of sets of related items in the
> Outline view.
>
>> I would like to be able to enhance an outline with a 'category'
>> on labels so that an outline might appear as:
>> <if> ...
>>   <then> ...
>>   <else> ...
>>
>> with the ... provided  by a standard label provider and the
>> <then> provided by a prefix.
>
> The issue here is that what gets handed to a LabelProvider is
> *not* a ModelTreeNode, but rather the AST that the ModelTreeNode
> represents.
>
> I think that you might be able to achieve the effect you want
> if you could (optionally) use a different LabelProvider just for
> the Outline view, and that LabelProvider could supply the prefix
> as well as the rest of the label in your example.
>
> This augmented LabelProvider could always instantiate the "normal"
> LabelProvider implementation, and add to whatever it produces.
>
> Does that sound like it addresses your need?
>
> -- 
> Cheers,
>   -- Bob
>
> --------------------------------
> Robert M. Fuhrer
> Research Staff Member
> Programming Technologies Dept.
> IBM T.J. Watson Research Center
>
> IDE Meta-tooling Platform Project Lead (http://www.eclipse.org/imp)
> X10: Productive High-Performance Parallel Programming (http://x10.sf.net)