executing menu handler (org.eclipse.ui.handlers) for multiple selection? [message #329936] |
Thu, 10 July 2008 21:22 |
Eclipse User |
|
|
|
Originally posted by: iwtb.email.com
I'm adding a menu item to a pop-up menu (project context menu) using
org.eclipse.ui.menu extension and am having trouble having the
corresponding command execute when multiple projects are selected. I can
select the menu item with multiple projects, but the command only executes
for the first project. I tried including
<activeWhen> <count value="+"></count></activeWhen>
<enabledWhen> <count value="+"></count></enabledWhen>
to the org.eclipse.ui.handlers extension
and it did not help.
I thought this <enabledWhen><count .. Is equivalent to the enablesFor
attribute org.eclipse.ui.popupMenus had (in objectContribution->action),
but maybe I am wrong.
If any of you knows how to make this work, would you please let me know?
Thanks a bunch in advance.
Dana
|
|
|
|
Powered by
FUDForum. Page generated in 0.03186 seconds