Skip to main content



      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
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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: Tue Jun 24 04:33:31 EDT 2025

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

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

Back to the top