I'm trying to build a toggle-style context menu with the command
framework. While the command framework does offer a way to specifiy such
toggle commands, I can find no mentioning of how the toggle would be
represented in a context menu. Additionally, I can not see a way to
specify the actual toggle state depending on the context (I have to use
project natures) - only global ways to do this appear to be available. I
need to change this state when the user changes the current selection.
Can this be achieved using the command framework or do I have to revert
to popupActions or even use two separate commands for addition and
removal of my nature?