Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » creating parent for already created child figure
creating parent for already created child figure [message #238931] Mon, 08 October 2007 10:55
Eclipse UserFriend
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.
Previous Topic:Refreshing Palette View without closing/reopen
Next Topic:Problem with Plotting Example with Draw2D and SWT with the Java platform
Goto Forum:
  


Current Time: Thu Apr 18 02:29:34 GMT 2024

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

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

Back to the top