Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to customize creation tool?
how to customize creation tool? [message #124263] Sat, 05 May 2007 11:00 Go to next message
Eclipse UserFriend
Hi All,

I want to alter creation tool's behaviour: create an item not on click on
the canvas, but on click on an element, which will become a neighbour of
the new element. So, after creation the new element should appear
somewhere near the one clicked and should be connected to it with an edge.

I did not manage to find info how to do this in the tutorials... Can
anyone help, please?

Thanks,
Alexey
Re: how to customize creation tool? [message #124307 is a reply to message #124263] Sat, 05 May 2007 14:25 Go to previous message
Eclipse UserFriend
Originally posted by: schaeffer.uni-muenster.de

Alex-

try to start here:


protected Command getCreateCommand(CreateElementRequest req) in
XXXSemanticEditPolicy.

It is called everytime you click on the XXXElement.

Have a look here on how to create elements:
http://wiki.eclipse.org/index.php/GMF_Tips

best,

-Bastian

Alexey Semenov schrieb:
> Hi All,
>
> I want to alter creation tool's behaviour: create an item not on click
> on the canvas, but on click on an element, which will become a neighbour
> of the new element. So, after creation the new element should appear
> somewhere near the one clicked and should be connected to it with an edge.
>
> I did not manage to find info how to do this in the tutorials... Can
> anyone help, please?
>
> Thanks,
> Alexey
Previous Topic:Diagram Code Generation
Next Topic:How to show the addChildren function in generated code
Goto Forum:
  


Current Time: Sun Aug 31 04:51:41 EDT 2025

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

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

Back to the top