Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » IMP » What is a ModelTreeNode category?
What is a ModelTreeNode category? [message #25963] Fri, 28 November 2008 12:06 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3167
Registered: July 2009
Senior Member
Hi

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.

A plausible approach might be to create a PrefixedModelTreeNode.
However this is a bit klunky since new ModelTreeNode occurs in many
places; factoring creation into a createTreeItem() would help.
A derived ModelTreeNode is actually impossible since nodes are
maintained in an array rather than a list. Gioven the use of an
arraycopy for each addition it is far from clear that the array
gives a performance benefit.

So perhaps the category integer could be annexed by creating an
integer-to-prefix string map; but who else uses categories, so
how can the category integers avoid conflict?

Regards

Ed Willink
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Pros and cons with projects xtext and imp
Next Topic:lastest lpg release + IMP = failure
Goto Forum:
  


Current Time: Thu May 23 06:33:18 EDT 2013

Powered by FUDForum. Page generated in 0.01830 seconds