Skip to main content



      Home
Home » Eclipse Projects » GEF » Key Shortcuts
Key Shortcuts [message #185997] Thu, 30 June 2005 19:41 Go to next message
Eclipse UserFriend
Originally posted by: J_ML.netcabo.pt

Hi again... just making sure someone knows how to help me cause i can't
seem to find out. I'm looking for a way to make key shortcuts to my
editor's right mouse menu.

Anyone know how? thanks
Re: Key Shortcuts [message #186012 is a reply to message #185997] Thu, 30 June 2005 22:40 Go to previous message
Eclipse UserFriend
I think setAccelerator(int keycode) method only show menu.
for example,
Action a = //gets the action
a.setAccelerator( SWT.CTRL | 'V' );

The pop menu show the key shortcuts, but if you want the key shortcuts call
the action, you should change the GraphicalViewerKeyHandler .
for example
put( KeyStroke.getPressed( SWT.F2, 0 ),
actionRegistry.getAction( GEFActionConstants.DIRECT_EDIT) );

""Jos
Previous Topic:How do I enforce single selection in GEF?
Next Topic:Parent-Child relationship!!!
Goto Forum:
  


Current Time: Sat May 10 01:58:51 EDT 2025

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

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

Back to the top