Skip to main content

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 17:06
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member

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?


Ed Willink
Previous Topic:New annotation creation service?
Next Topic:Using IMP for LPG in non-IMP target
Goto Forum:

Current Time: Sun Nov 18 01:33:09 GMT 2018

Powered by FUDForum. Page generated in 0.02059 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top