Invoking a Direct Edit Action [message #647961] |
Mon, 10 January 2011 10:49  |
Eclipse User |
|
|
|
Having this code put into subclassed Editor's getCommonKeyHandler() method:
sharedKeyHandler.put(KeyStroke.getPressed(SWT.F2, 0), getActionRegistry().getAction(GEFActionConstants.DIRECT_EDIT));
The F2 key didn't go into my CellEditor for a Label Figure.
I want to be able to edit a label in my editor pressing "Enter" or quickly double clicking twice on the EditPart. While currently an unselected part gets clicked once for selection, and delay a second mouse click.
How would I do this? I was puzzled on how to change certain editing behaviors, which may all lay in the layout policies.
Thankful for any help.
Andy Anfilofieff.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03261 seconds