Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2010-11-01 16:47:34 +0000
committerChris Goldthorpe2010-11-01 16:47:34 +0000
commite8ffae9abdd2b00bc4af1a3eebe1191d2815cd29 (patch)
tree843393287543467d4f727958c79a6c10130744e5 /org.eclipse.ui.cheatsheets
parentb7a2ee62e320c0f138a447242b389498f857e13a (diff)
downloadeclipse.platform.ua-e8ffae9abdd2b00bc4af1a3eebe1191d2815cd29.tar.gz
eclipse.platform.ua-e8ffae9abdd2b00bc4af1a3eebe1191d2815cd29.tar.xz
eclipse.platform.ua-e8ffae9abdd2b00bc4af1a3eebe1191d2815cd29.zip
Bug 328953 - [Cheatsheet] Using e4 SDK Commands launched from cheat sheets not workingv20101101
Diffstat (limited to 'org.eclipse.ui.cheatsheets')
-rw-r--r--org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/CommandRunner.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/CommandRunner.java b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/CommandRunner.java
index fa0594b85..a41fa429e 100644
--- a/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/CommandRunner.java
+++ b/org.eclipse.ui.cheatsheets/src/org/eclipse/ui/internal/cheatsheets/CommandRunner.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2007 IBM Corporation and others.
+ * Copyright (c) 2005, 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
@@ -79,8 +79,8 @@ public class CommandRunner {
try {
String substitutedSerialization = csm.performVariableSubstitution(rawSerialization);
selectedCommand = commandService.deserialize(substitutedSerialization);
- IEvaluationContext state = handlerService.getCurrentState();
- result = selectedCommand.executeWithChecks(null, state);
+ result = handlerService.executeCommand(selectedCommand, null);
+
String returnsAttribute = command.getReturns();
if ((returnsAttribute != null) && (result != null)) {

Back to the top