Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrik Suzzi2016-08-16 12:11:30 +0000
committerPatrik Suzzi2016-08-16 12:11:30 +0000
commit6663f9b077c9f23a0f9dc52a28e6380aeaa63842 (patch)
treea67c9098b5634e7952e79a5ed24b93a0bf88eb74
parent43283c044f8e6855bdf0051497865769f3ab20a4 (diff)
downloadeclipse.platform.ui-6663f9b077c9f23a0f9dc52a28e6380aeaa63842.tar.gz
eclipse.platform.ui-6663f9b077c9f23a0f9dc52a28e6380aeaa63842.tar.xz
eclipse.platform.ui-6663f9b077c9f23a0f9dc52a28e6380aeaa63842.zip
Bug 476045 - Commands visible in Quick Access don't show commandImageI20160816-1015
QuickAccess commands now are displaying the associated command image. Change-Id: I06b53de0dbd0789d7d95eaa6fe4447266cebcd56 Signed-off-by: Patrik Suzzi <psuzzi@gmail.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/CommandElement.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/CommandElement.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/CommandElement.java
index c7f6f1e54e9..ece2180866f 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/CommandElement.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/CommandElement.java
@@ -9,6 +9,7 @@
* IBM Corporation - initial API and implementation
* ARTAL Technologies <simon.chemouil@artal.fr> - Bug 293044 added keybindings display
* Lars Vogel <Lars.Vogel@gmail.com> - Bug 440810
+ * Patrik Suzzi <psuzzi@gmail.com> - Bug 476045
*******************************************************************************/
package org.eclipse.ui.internal.quickaccess;
@@ -21,6 +22,7 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.commands.ICommandImageService;
import org.eclipse.ui.handlers.IHandlerService;
import org.eclipse.ui.internal.keys.BindingService;
import org.eclipse.ui.internal.menus.CommandMessages;
@@ -84,7 +86,8 @@ public class CommandElement extends QuickAccessElement {
@Override
public ImageDescriptor getImageDescriptor() {
- return null;
+ ICommandImageService imgService = PlatformUI.getWorkbench().getService(ICommandImageService.class);
+ return (imgService == null) ? null : imgService.getImageDescriptor(getId());
}
/**

Back to the top