Delete From Diagram [message #190685] |
Tue, 03 June 2008 13:32  |
Eclipse User |
|
|
|
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   |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04352 seconds