Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » overriding the DEL key behavior
overriding the DEL key behavior [message #172489] Thu, 14 February 2008 00:43
John Yotka is currently offline John YotkaFriend
Messages: 144
Registered: July 2009
Senior Member
I'm trying to disable the DEL key from deleting most types of editparts
on my diagram. I've tried the overriding of the
getDestroyElementCommand in the various xxxSemanticEditPolicy classes,
but this isn't working correctly when those editparts are children of a
part that can be DELeted.

Next I tried to add an extension to the org.eclipse.ui.bindings and
org.eclipse.ui.commands to put my own handler in for the DEL key. but
the keypress event for the DEL key must be getting trapped before my
handler is accessed. (Note if I change the key sequence to ALT+DEL, my
handler is used.)

How do I override the DEL key behavior?
Previous Topic:Listbox in Palette
Next Topic:Shortcuts to Domain Model Elements
Goto Forum:
  


Current Time: Thu Apr 25 23:20:43 GMT 2024

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

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

Back to the top