Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to disable the remove?
How to disable the remove? [message #730593] Wed, 28 September 2011 16:54 Go to next message
Matteo Miraz is currently offline Matteo MirazFriend
Messages: 38
Registered: March 2011
Member
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 19:17 Go to previous messageGo to next message
Hernan Gonzalez is currently offline Hernan GonzalezFriend
Messages: 188
Registered: October 2010
Location: Buenos Aires, Argentina
Senior Member
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 19:18]

Report message to a moderator

Re: How to disable the remove? [message #730662 is a reply to message #730654] Wed, 28 September 2011 20:04 Go to previous messageGo to next message
Joerg Reichert is currently offline Joerg ReichertFriend
Messages: 80
Registered: July 2009
Location: Leipzig
Member
Hi,

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

Joerg


--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Re: How to disable the remove? [message #730949 is a reply to message #730662] Thu, 29 September 2011 15:21 Go to previous message
Matteo Miraz is currently offline Matteo MirazFriend
Messages: 38
Registered: March 2011
Member
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: Thu Apr 25 07:04:14 GMT 2024

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

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

Back to the top