Above you will see that the same handler is contributed in two different plug-ins so that the command 'myCmd1' is enabled for classes of type 'RootTypeA' and 'RootTypeB'

When the UI comes up, the command is shown but is not enabled. What am I missing?

The classes RootTypeA and RootTypeB belong to different plugins but needs to use the same handler. PluginB is dependent on PluginA.

Thanks,
Rashmy
]]>Rashmy A2013-04-16T03:02:27-00:00Re: Command Handler enablementhttps://www.eclipse.org/forums/index.php/mv/msg/476898/1042262/#msg_1042262
in your <enabledWhen> declaration you did not define over what should be iterated.
You just iterate over nothing and then try to test it.

Simon]]>Simon Scholz2013-04-16T07:34:12-00:00Re: Command Handler enablementhttps://www.eclipse.org/forums/index.php/mv/msg/476898/1042497/#msg_1042497
The commands are contributed in a View and the view provides IStructuredSelection. Hence there was no need to specify the <with> clause.