Skip to main content



      Home
Home » Modeling » Graphiti » How to disable the remove?
How to disable the remove? [message #730593] Wed, 28 September 2011 12:54 Go to next message
Eclipse UserFriend
Hi,

I'm creating a graphical editor using graphiti. My users find confusing the distinction between "delete" and "remove". Accordingly, I would like to provide the "delete" functionality only. Since their models are simple, the idea is to keep in sync the model and its graphical representation... if you can see it, it is in the model.

How can I do that?

Thanks,
Matteo
Re: How to disable the remove? [message #730654 is a reply to message #730593] Wed, 28 September 2011 15:17 Go to previous messageGo to next message
Eclipse UserFriend
See my answer here:

http://www.eclipse.org/forums/index.php/mv/msg/234410/720417/#msg_720417

Perhaps this should be in the FAQ...

[Updated on: Wed, 28 September 2011 15:18] by Moderator

Re: How to disable the remove? [message #730662 is a reply to message #730654] Wed, 28 September 2011 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

you can also subclass the DiagramEditor to replace the method in the internal diagram editor that creates the context menu.

Joerg
Re: How to disable the remove? [message #730949 is a reply to message #730662] Thu, 29 September 2011 11:21 Go to previous message
Eclipse UserFriend
Thanks,

at the end, I used the solution proposed by Hernan...
Before asking, I tried to disable the remove, but I experienced some issues with the delete! His solution correctly re-activates the remove feature when a delete is invoked... nice! Smile

Now I have another small question... How can I insert the "new" elements in the diagram?

Thanks again,
Matteo

Previous Topic:Specialized non-localized anchor
Next Topic:How to invoke direct editing programatically?
Goto Forum:
  


Current Time: Sun Jul 13 19:32:57 EDT 2025

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

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

Back to the top