Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Override "DEL" keybinding in diagram
Override "DEL" keybinding in diagram [message #143271] Wed, 18 July 2007 14:55 Go to next message
Andreas Schuster is currently offline Andreas SchusterFriend
Messages: 27
Registered: July 2009
Junior Member
hi,

i have a problem with the "DEL" key binding in non-syncronized diagrams.
the problem is, that using the "DEL" key only removes the view but not
the model element. i remember that there was an option in earlier gmf
versions where the user was asked whether to remove the view only or the
model element as well, but i can't remember where to activate this option.

i've also tried to override the "DEL" key binding using
org.eclipse.ui.bindings and org.eclipse.ui.commands extension points,
similiar to the new F5 key binding. i've tried to trigger the key action
with an implementation of an IHandler, but the execute() method is never
called (other key bindings, e.g. SPACE or END works fine).

is there a way to get control of the "DEL" key, or how to override the
gmf binding for this key?

cheers
Re: Override "DEL" keybinding in diagram [message #144039 is a reply to message #143271] Wed, 25 July 2007 11:42 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello A.Schuster,

There should be two separate actions for "delete from model" and "delete
from diagram" som eof these actions could be explicitly registered/unregistered
in the generated plugin.xml Did you try to modify generated plugin.xml?

-----------------
Alex Shatalin
Previous Topic:Re: EMF/GMF visual editor generation - Changing the containment of elements
Next Topic:Compatibility GMF1.0.3 / GMF2.0
Goto Forum:
  


Current Time: Sun Sep 15 18:15:53 GMT 2024

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

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

Back to the top