Community
Participate
Working Groups
This code: Map<String, String> parameter = new HashMap<String, String>(); parameter.put(PARAMETER_SWITCHPERSPECTIVE_ID, PERSPECTIVE_ID); ParameterizedCommand command = commandService.createCommand(COMMAND_SWITCHPERSPECTIVE_ID, parameter); handlerService.executeHandler(command); was working fine with Eclipse 4.3M3. After updating to 4.3M4 it doesn't work anymore, the handler is not being executed. Reverting eclipse to previous version makes it work again.
I can confirm these, my @CanExecute methods arn't called either.
If you have an existing model, you have to add org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon to your model, similar to how it is in eclipse/plugins/org.eclipse.platform_4.3.0.v201212140730/LegacyIDE.e4xmi PW
Thank you Paul, adding the addon to the model as it is in LegacyIDE.e4xmi solves the problem.
*** Bug 399657 has been marked as a duplicate of this bug. ***
Paul, where can I edit the migration guide and add this info? I feel I should do it since I made the change.
We work in master in http://git.eclipse.org/c/platform/eclipse.platform.common.git/tree/bundles/org.eclipse.platform.doc.isv/porting I have to talk to some developers though. If a 3.x RCP app based on 4.2 doesn't work by default in 4.3, we might have to add some workbench code to "auto-upgrade" the existing model. PW
Paul I'm trying to clear my assigned bugs list. Is it appropriate to add now the info on the new addon?
We need to get this in this week. PW
Created attachment 231697 [details] Patch
Released as http://git.eclipse.org/c/platform/eclipse.platform.common.git/commit/?id=88dcf7a932247e7ed5a8c99294cfdb8d4342b74f Thanks Sopot. PW
Verified (visually) that the new section is in the docs...