Community
Participate
Working Groups
Platform UI now provides a collapse all command, org.eclipse.ui.navigate.collapseAll, and an implementation of a handler that can be used with org.eclipse.ui.handlers.CollapseAllHandler any AbstractTreeViewer. Using this command with your action or converting to the new handler would allow you to take advantage of the keybinding as well. PW
This feels like a good 3.4 polish item.
I just set the action definition id on the IAction, and then the appropriate key binding showed in the hover help. However, pressing the keys had no effect. Is there something else we need to do to hook this up?
Paul, please see question in previous comment.
Darin, if you are going to use your existing action you should also be able to go: IHandlerService hs = (IHandlerService) getSite().getService(IHandlerService.class) hs.activatehandler("org.eclipse.ui.navigate.collapseAll", new ActionHandler(collapseAllAction)); using org.eclipse.jface.commands.ActionHandler PW
Created attachment 98903 [details] patch Adds collapse all handler for variables, expressions, and breakpoints view.
Please review/apply patch, Curtis.
Fixed in HEAD. Replaced hard coded command id's with constant.
Created attachment 98929 [details] mylyn/context/zip