Skip to main content


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 10:47 Go to next message
sajja Phani is currently offline sajja PhaniFriend
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 10:53]

Report message to a moderator

Re: action provider keystrokes not working [message #899049 is a reply to message #899042] Mon, 30 July 2012 11:05 Go to previous message
sajja Phani is currently offline sajja PhaniFriend
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: Sat Jul 27 05:56:15 GMT 2024

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

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

Back to the top