Hi, Indeed, I would suggest to use a handler instead of the action because you have the command defined already. I think that the problem in your implementation is that you don't register the Action, see https://wiki.eclipse.org/FAQ_How_do_I_associate_an_action_with_a_command%3F
Best Regards, Rolf Op do 1 apr. 2021 om 08:52 schreef Mickael Istria <[email protected]>: > Hi, > > Have you tried using a regular handler for this command, implement > enableWhen/setEnabled() so it's only enabled on the desired editor and see > whether the command then handled on Shift+S? If this works fine, then > instead of defining the Action in the editor, you can keep the handler and > use a "CommandAction" in the editor to just reference the command and the > handler. This pattern usually works well and has a few benefits over > implementing Actions directly in editors IMO. > > HTH > _______________________________________________ > platform-dev mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/platform-dev >
_______________________________________________ platform-dev mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/platform-dev
