[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Representing multiple nodes as a single figure on the editor
|
- From: ganesh.mohan@xxxxxx (Ganesh Mohan)
- Date: Tue, 23 Jan 2007 12:30:07 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hello,
Consider the following example xml code :
<element1>
<child1/>
<child2/>
</element1>
The existing implementation using gmf is :
On the editor, element1 is represented as a rectangle figure and has a
compartment. Child1 and Child2 are also represented as rectangle figures
and are added into the element1's compartment.The model is updated
accordingly depending upon what we add as a child in the compartment.
The new aprocah:
I wanted to represent element1 as a custom-figure on the editor without
any compartments having no child figures. I would like to add the child
elements using the properties view of the "element1" and configure the
child properties using the same properties view of "element1". I also want
the model to get updated depending on the child configured under
"element1". The model file generated should be simliar to the one
represented above.
How to achieve this functionality in gmf. I want to have Child1 and Child2
as elements but not represent them graphically.
Thanx,
Ganesh