I have created a processor which show perspective avaible in toolbar an it would change perspective . But i have 2 problems , my handler is not called despite my toolbar is avaible , i have created my processor like:
My handler not execute because i can't inject MHandledToolITem but what is the correct way to have the MHandledITem Select ?
I have try to inject IServiceConstants with the active selection (@Named(IServiceConstants.ACTIVE_SELECTION)MHandledToolItem selection) but it was null.
Actually i create toolItem for all perspectives , their label are perspective label .
In my processor i'd try to inject ESelection service to change selection but ESelection was null :/ .
How use command parameters what ID shoud be correspond ? Is the same as processor ?
Thanks for your help
Why don't you add parameters to those items (btw, I think you should use MHandledToolItem when adding items to toolbar), which would be the perspectives' id? Then, when you execute the handler, you can inject command parameter and display a proper perspective.