Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Delete From Diagram
Delete From Diagram [message #190685] Tue, 03 June 2008 13:32 Go to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
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 09:54 Go to previous messageGo to next message
Swetha is currently offline SwethaFriend
Messages: 36
Registered: July 2009
Member
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 12:19 Go to previous message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
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 Mar 29 11:53:36 GMT 2024

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

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

Back to the top