Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » action provider keystrokes not working
action provider keystrokes not working [message #899042] Mon, 30 July 2012 06:47 Go to next message
sajja Phani is currently offline sajja Phani
Messages: 26
Registered: August 2011
Junior Member
Hi,

I have defined an actionProvider to my navigatorContent

fillActionBars(...) contains

if (deleteAction.isEnabled())
	actionBars.setGlobalActionHandler(ActionFactory.DELETE.getId(),
					deleteAction);


It is invoking for the enter key and mouse double click.

actionBars.setGlobalActionHandler(ICommonActionConstants.OPEN,
					deleteAction);


I am able to execute the action selecting from the context menu, but the action is not getting invoked by the Delete keystroke. Am I missing anything to invoke the action with the keystrokes.

--
Thanks
Sajja

[Updated on: Mon, 30 July 2012 06:53]

Report message to a moderator

Re: action provider keystrokes not working [message #899049 is a reply to message #899042] Mon, 30 July 2012 07:05 Go to previous message
sajja Phani is currently offline sajja Phani
Messages: 26
Registered: August 2011
Junior Member
Adding
register(ActionFactory.DELETE.create(window));

to
ApplicationActionBarAdvisor.makeActions(...)


solved my problem

--
Thanks
Sajja
Previous Topic:action provider keystrokes not working
Next Topic:CNF Content Provider IFiles
Goto Forum:
  


Current Time: Sun Aug 31 04:39:24 EDT 2014

Powered by FUDForum. Page generated in 0.12561 seconds