Extending create-action of node from palette. [message #51686] |
Wed, 20 September 2006 06:06 |
Eclipse User |
|
|
|
Hi @all,
I've got GMF-generated workflow-editor with a flyoutpalette and
different files for model and diagram. There are special nodes and
connections that can be dropped from the palette to the editor-diagram.
I want to extend the action that is executed after dropping a node into
the diagram.
I know that the corresponding action is created by
YxzItemSemanticEditPolicy.createYYCommand(request).
I want to keep the diagram and the xml-file in the content-system
synchronized.
Does anyone know how to extend this command so that my node is created
and the save-diagram-action is executed immediately so that the changed
diagram is synchronized with the xml-file? I think the changes are
copied to the modelfile only after the save-diagram-action is executed,
right?
Next Task to do after having synchronized the two files:
I want to add the new generated node only once in the diagramfile but in
two places in the modelfile, not only in one. Does anyone know how to
make this possible?
Any help appreciated
Greets Alex
|
|
|
Powered by
FUDForum. Page generated in 0.07958 seconds