Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-09-22 16:53:52 -0400
committerDJ Houghton2010-09-22 16:53:52 -0400
commit5d65f9b97c280b66730c760621ad56a6b41d6320 (patch)
treedb4c1a7606f04bbb8793973cb3a71d5a1ae89013 /bundles/org.eclipse.equinox.p2.ui.admin.rcp/src
parent93f32bdde9ce3d646b4adc77a3b1ba56ccbd12a7 (diff)
downloadrt.equinox.p2-5d65f9b97c280b66730c760621ad56a6b41d6320.tar.gz
rt.equinox.p2-5d65f9b97c280b66730c760621ad56a6b41d6320.tar.xz
rt.equinox.p2-5d65f9b97c280b66730c760621ad56a6b41d6320.zip
Bug 326002 - [ui] [admin] 2 menu entries for Preferences (one not working)
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui.admin.rcp/src')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.admin.rcp/src/org/eclipse/equinox/internal/p2/ui/admin/rcp/ApplicationActionBarAdvisor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.admin.rcp/src/org/eclipse/equinox/internal/p2/ui/admin/rcp/ApplicationActionBarAdvisor.java b/bundles/org.eclipse.equinox.p2.ui.admin.rcp/src/org/eclipse/equinox/internal/p2/ui/admin/rcp/ApplicationActionBarAdvisor.java
index 001b6ebb2..43b317519 100644
--- a/bundles/org.eclipse.equinox.p2.ui.admin.rcp/src/org/eclipse/equinox/internal/p2/ui/admin/rcp/ApplicationActionBarAdvisor.java
+++ b/bundles/org.eclipse.equinox.p2.ui.admin.rcp/src/org/eclipse/equinox/internal/p2/ui/admin/rcp/ApplicationActionBarAdvisor.java
@@ -40,8 +40,9 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
IMenuManager windowMenu = new MenuManager(ProvAdminUIMessages.ApplicationActionBarAdvisor_WindowMenuName, "window"); //$NON-NLS-1$
menuBar.add(windowMenu);
- windowMenu.add(prefsAction);
- windowMenu.setVisible(!Util.isMac());
+ ActionContributionItem prefsItem = new ActionContributionItem(prefsAction);
+ prefsItem.setVisible(!Util.isMac());
+ windowMenu.add(prefsItem);
IMenuManager helpMenu = new MenuManager(ProvAdminUIMessages.ApplicationActionBarAdvisor_HelpMenuName, "help"); //$NON-NLS-1$
menuBar.add(helpMenu);

Back to the top