Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Webster2012-04-21 01:44:08 +0000
committerMarkus Keller2012-04-21 01:44:08 +0000
commit611aa6f9a3af35a439c1898f92af4249807747a6 (patch)
treebd9ec701a24ec7c5b4916f8f0a385373ccefe074
parentf46259314f4919bb767d0abd8d8c8f0da3f17be9 (diff)
downloadeclipse.platform.ui-611aa6f9a3af35a439c1898f92af4249807747a6.tar.gz
eclipse.platform.ui-611aa6f9a3af35a439c1898f92af4249807747a6.tar.xz
eclipse.platform.ui-611aa6f9a3af35a439c1898f92af4249807747a6.zip
Bug 262593 - [Commands] Show in package explorer shortcut not working
in linux
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java
index 1f5d677e8fa..f643a1a0853 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ShowInMenu.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 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
@@ -243,6 +243,9 @@ public class ShowInMenu extends ContributionItem implements
viewDescriptor.getId());
parm.parameters = targetId;
parm.label = viewDescriptor.getLabel();
+ if (parm.label.length() > 0) {
+ parm.mnemonic = parm.label.substring(0, 1);
+ }
parm.icon = viewDescriptor.getImageDescriptor();
return new CommandContributionItem(parm);
}

Back to the top