[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Initializing nodes on a diagram

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