Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Customizing Creation Tools: Adding multiple elements at once
Customizing Creation Tools: Adding multiple elements at once [message #187364] Thu, 15 May 2008 15:45
Philip Mayer is currently offline Philip MayerFriend
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
Previous Topic:Add a shape to a figure (newbie) - taipan example
Next Topic:How to make an item undeletable
Goto Forum:
  


Current Time: Thu Apr 25 08:10:01 GMT 2024

Powered by FUDForum. Page generated in 0.02567 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top