[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Add sub-nodes programmatically after creating node (GMF 2.2)

When creating a node using palette, I display a wizard, and depending on the users selection I add sub-elements to the newly created node (displayed as border items).

I realized this with a custom CreateCommand, where I add the sub-elements after the parent node has been created. This worked fine with GMF 2.1.3.

With GMF 2.2 it seems to work too, sub-nodes are displayed properly. But when I save, close and reopen my diagram, the sub-nodes are not displayed any more.

I have split diagram/model files. The sub-elements are in the model file but they seem to be missing in the diagram file.

Is there a better way to create the sub-nodes?
Is this a bug?

Thanks in advance!