Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExpand and collapse
https://www.eclipse.org/forums/index.php/mv/msg/77972/242525/#msg_242525
Originally posted by: yifanzhou.gmx.de
Hi, everyone,
I have a root model and two sub models which are in my GEF editor. After I select the two sub models, then click a group action.
I want to delete the two sub models and add a new model into my editor. The new model can remember which old models were deleted.
I extended the SelectionAction to implement the group action. In the implementation of group action I can get the all edit parts of
selected models, and after execution the selected models were deleted. But I couldn't add the new model by calling my create object
command. Could someone help me?]]>2008-04-23T13:15:23-00:00Re: Expand and collapse
https://www.eclipse.org/forums/index.php/mv/msg/77972/242587/#msg_242587
Originally posted by: yifanzhou.gmx.de
>Hi, everyone,
>
>I have a root model and two sub models which are in my GEF editor. After I select the two sub models, then click a group action.
>I want to delete the two sub models and add a new model into my editor. The new model can remember which old models were deleted.
>
>I extended the SelectionAction to implement the group action. In the implementation of group action I can get the all edit parts of
>selected models, and after execution the selected models were deleted. But I couldn't add the new model by calling my create object
>command. Could someone help me?
>
>
I just implemented this by add some commands into gef command stack.