Initializing nodes on a diagram [message #195679] |
Thu, 03 July 2008 14:34 |
Eclipse User |
|
|
|
Originally posted by: yagayoga.hotmail.com
Hi there,
I would like to create certain nodes on my diagram at initialization time.
So, when the user right clicks and does 'initialize diagram file' to
create a new diagram, certain nodes are already included. Eg, instead of
this file being generated:
<DiagramNode/>
I would like:
<DiagramNode><Foo/><Bar/></DiagramNode>
But this is _before_ anything is added to the model by the user. I realize
I could use 'ghost nodes' in the edit commands for Create, but checking
for the existence of this structure each time a create command is executed
seems like overkill. Is there a better place I could put the
initialization commands?
Jen
|
|
|
|
Powered by
FUDForum. Page generated in 0.02986 seconds