Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IMP » What is a ModelTreeNode category?
What is a ModelTreeNode category? [message #574564] Fri, 28 November 2008 12:06
Ed Willink is currently offline Ed Willink
Messages: 4035
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
Previous Topic:New annotation creation service?
Next Topic:Using IMP for LPG in non-IMP target
Goto Forum:
  


Current Time: Sat Aug 30 02:25:24 EDT 2014

Powered by FUDForum. Page generated in 0.02032 seconds