creating parent for already created child figure [message #238931] |
Mon, 08 October 2007 10:55 |
Eclipse User |
|
|
|
Originally posted by: rajeev.ssingh.patni.com
Hi,
I've a state diagram editor where I can create states and composite states.
Now I've to implement a feature where user can select multiple states and
on right click he should be able to
create parent composite state eclosing all the selected states.
Now I've written a CreateParentCompositeStateCommand class which I'm
returning through getCommand() method of ComponentEditPolicy of
StateEditPart.
But the problem is that this command is getting executed for each selected
editpart.
And for each selected state, separate parent composite state is getting
created.
Whereas what I want is for all the selected states there should be only
one parent composite state.
Any help or pointer to solve this problem will be of immense value.
Thanks,
Rajeev.
|
|
|
Powered by
FUDForum. Page generated in 0.01769 seconds