Customizing Creation Tools: Adding multiple elements at once [message #187364] |
Thu, 15 May 2008 15:45 |
Philip Mayer Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hi,
I would like to add a node and several children using a customized
creation tool on the palette to both the EMF model and to the diagram,
where the user places the node.
I have searched through the CreationTool / UnspecifiedTypeCreationTool /
EditPart / SemanticEditPolicy classes and all of them seem to assume
that only one element is created. Is there some way of (perhaps) adding
a CompoundCommand in which the second creation command references the
first one (as the first is its container)?
The MindMap example (page 3) explains how to add a custom action, but
this is external to the palette (I would like the same behaviour as in
the palette) and uses a the
DeferredCreateConnectionViewAndElementCommand which I guess I can not
use for nodes and from the palette.
Has this been done before? Any pointers?
Thanks a lot!
Philip
|
|
|
Powered by
FUDForum. Page generated in 0.02567 seconds