Save with F10 [message #1732572] |
Wed, 18 May 2016 10:28 |
Rashmi Tr Messages: 22 Registered: November 2011 |
Junior Member |
|
|
I have Editors in Nattable. In Editor after editing i need to press F10 Key to save the values in Database.
So in EditBinding i added this:
uiBindingRegistry.registerKeyBinding(new KeyEventMatcher(SWT.NONE, SWT.F10),new KeySaveAction());
And I created the class KeySaveAction which implements IKeyAction (like KeyEditAction Class).In which I added the
Command EditSaveCommand which extends AbstractContextFreeCommand and for that created EditSaveCommandHandler
which extends AbstractLayerCommandHandler<EditSaveCommand> and Overrided doCommand(EditSaveCommand command) from
EditSaveCommandHandler.
natTable.doCommand(new EditSaveCommand(natTable, natTable.getConfigRegistry(), convertCharToCharacterObject(event)));
But it is doing nothing. What I am missing and what should I do to make it work?
Thanks and Regards,
Rashmi
|
|
|
|
Powered by
FUDForum. Page generated in 0.03299 seconds