how to customize creation tool? [message #124263] |
Sat, 05 May 2007 11:00  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02987 seconds