Project: Eclipse_Platform_UI
Bug 212292 [Contributions] <enabledWhen> does not work when view is detached
Reported: 2007-12-07 13:53:26 | Status: verified fixed

Build ID: M20071023-1652 Steps To Reproduce: Checked out the current org.eclipse.ui.examples.contributions from dev.eclipse.org. Show "Info View" and select two items to enable "Swap Entries" toolbar command. Now detach the view. The "Swap Entries" is disabled. Reattach and all works. I've tried using <count>, <with variable="selection"> and I can't get the <enabledWhen> and the selection to work with a detached view.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/services/CurrentSelectionSourceProvider.java