Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Delete From Diagram
Delete From Diagram [message #190685] Tue, 03 June 2008 09:32 Go to next message
Eclipse UserFriend
Hello,

How can I enable the Delete From Diagram action of the context menu for
my own editparts?

Currently it works only for compartments (I tried on my own diagram and
on the mindmap example). I would like to be able to delete an element of
the notation model without deleting the element in the model.

Thanks in advance!
Re: Delete From Diagram [message #190892 is a reply to message #190685] Wed, 04 June 2008 05:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

In the xxEditPart.java file found in the path
src\org\xx\diagram\edit\parts,
Comment the following lines
//installEditPolicy(
// EditPolicyRoles.CANONICAL_ROLE,
//new xx.diagram.edit.policies.xxCanonicalEditPolicy());


I am not sure if this is the right way to do,but it worked for me.



Regards,
Swetha.
Re: Delete From Diagram [message #1016972 is a reply to message #190892] Fri, 08 March 2013 07:19 Go to previous message
Eclipse UserFriend
it works but how can i reload element which deleted with delete from diagram command ?
Previous Topic:After "Generate diagram code" the edit project is not found
Next Topic:Possible NullPointerException in GMF
Goto Forum:
  


Current Time: Fri Jul 25 00:25:45 EDT 2025

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

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

Back to the top