I have the following problem. Within my eclipse plug-in I've defined a command and a handler for it. The handler checks programmatically if it is enabled or not. This setup worked fine until I discovered the "New Window" menu. As it happens to be, in my setup only one handler is instanced, and if I toggle the enabled state, the command is disabled/enabled in all windows. This isn't how I want it to be. The state of the command should only change per workbench window and not globally.
Paul Webster Messages: 6850 Registered: July 2009 Location: Ottawa
In 3.6 you are stuck with that behaviour. i.e. enabled is global state
on the Command. If it's enabled/disabled, that's for the entire workbench.
We hope to avoid that in e4/4.0 by making enabled a question that the
handler must answer in a context, so that the toolitem in view one
doesn't have to have the same enabled state as a toolitem in view two.