Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-09-22 16:34:07 -0400
committerDJ Houghton2010-09-22 16:34:07 -0400
commit93f32bdde9ce3d646b4adc77a3b1ba56ccbd12a7 (patch)
tree1f475faf624a966fb48a981ad3cfc83280032ae0 /bundles/org.eclipse.equinox.p2.ui.admin.rcp/src
parent85e7415ae9453071f23dc73359f765674c3260d1 (diff)
downloadrt.equinox.p2-93f32bdde9ce3d646b4adc77a3b1ba56ccbd12a7.tar.gz
rt.equinox.p2-93f32bdde9ce3d646b4adc77a3b1ba56ccbd12a7.tar.xz
rt.equinox.p2-93f32bdde9ce3d646b4adc77a3b1ba56ccbd12a7.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.java8
1 files changed, 6 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 2612358e1..001b6ebb2 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * Copyright (c) 2007, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -11,6 +11,7 @@
package org.eclipse.equinox.internal.p2.ui.admin.rcp;
import org.eclipse.jface.action.*;
+import org.eclipse.jface.util.Util;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.application.ActionBarAdvisor;
@@ -33,11 +34,14 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
protected void fillMenuBar(IMenuManager menuBar) {
IMenuManager fileMenu = new MenuManager(ProvAdminUIMessages.ApplicationActionBarAdvisor_FileMenuName, "file"); //$NON-NLS-1$
menuBar.add(fileMenu);
- fileMenu.add(quitAction);
+ ActionContributionItem quitItem = new ActionContributionItem(quitAction);
+ quitItem.setVisible(!Util.isMac());
+ fileMenu.add(quitItem);
IMenuManager windowMenu = new MenuManager(ProvAdminUIMessages.ApplicationActionBarAdvisor_WindowMenuName, "window"); //$NON-NLS-1$
menuBar.add(windowMenu);
windowMenu.add(prefsAction);
+ windowMenu.setVisible(!Util.isMac());
IMenuManager helpMenu = new MenuManager(ProvAdminUIMessages.ApplicationActionBarAdvisor_HelpMenuName, "help"); //$NON-NLS-1$
menuBar.add(helpMenu);

Back to the top