[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to add a key binding to my action

If you want to use your local view action as a delete handler in 3.4 (so
it works with the delete command) you can use:

IHandlerService hs
  = (IHandlerService) getSite().getService(IHandlerService.class);
hs.activeHandler("org.eclipse.ui.edit.delete",
  new ActionHandler(deleteAction));

Later,
PW

-- 
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm