Community
Participate
Working Groups
The 'Breakpoints' view's 'Remove Selected Breakpoints' and 'Remove All Breakpoints' actions are disabled when the view is inactive. They enable themselves when the view becomes the active view. In 3.x they are always active.
The canExecute(*) method returns false because no applicable handler can be found so the item disables itself.
Not sure what we can do here. These actions' expressions are instantiated by LegacyActionPersistence and are registered with the window's handler service and are evaluated whenever the active part changes.
The difference would be that in 3.x those buttons are backed by the viewActions, as opposed to the handlers. Possible solutions involve having the LegacyActionPersistence create and activate the handlers at the view IEclipseContext level. Then they'll always be found from the view's toolbar. Or if I re-activate viewActions, then they would be MOpaqueToolItems backed by ACIs and the problem goes away. PW
I've started working on this in pwebster/legacyViewActions PW
fixed with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=1a449bf450b3b2276d9416226c553665bc04dfff PW
Verified in I20120430-1800