diff options
author | Michael Rennie | 2011-03-22 16:55:23 +0000 |
---|---|---|
committer | Michael Rennie | 2011-03-22 16:55:23 +0000 |
commit | 8953d55db8500c9ae298a2993f6191fa537f5e23 (patch) | |
tree | f712ecdf15e2635cee425981c7ca56e627bb75b7 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui | |
parent | 34d10e604d1e4486e2f677fc3827134ccf9fdfa3 (diff) | |
download | eclipse.platform.debug-8953d55db8500c9ae298a2993f6191fa537f5e23.tar.gz eclipse.platform.debug-8953d55db8500c9ae298a2993f6191fa537f5e23.tar.xz eclipse.platform.debug-8953d55db8500c9ae298a2993f6191fa537f5e23.zip |
Bug 338576 - Add the platform IEvaluationContext as a parent for debug UI IEvaluationContexts
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java | 5 | ||||
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java index 58fce27e4..3a412cdc6 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/ContextualLaunchAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2011 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 @@ -17,7 +17,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import org.eclipse.core.expressions.EvaluationContext; import org.eclipse.core.expressions.Expression; import org.eclipse.core.expressions.IEvaluationContext; import org.eclipse.core.runtime.CoreException; @@ -208,7 +207,7 @@ public abstract class ContextualLaunchAction implements IObjectActionDelegate, I if(o instanceof IEditorPart) { selection.set(0, ((IEditorPart)o).getEditorInput()); } - IEvaluationContext context = new EvaluationContext(null, selection); + IEvaluationContext context = DebugUIPlugin.createEvaluationContext(selection); context.setAllowPluginActivation(true); context.addVariable("selection", selection); //$NON-NLS-1$ while (iter.hasNext()) { diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java index 620654db4..a596253cf 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/LaunchShortcutsAction.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. + * Copyright (c) 2000, 2011 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 @@ -16,7 +16,6 @@ import java.util.Iterator; import java.util.List; import java.util.Set; -import org.eclipse.core.expressions.EvaluationContext; import org.eclipse.core.expressions.Expression; import org.eclipse.core.expressions.IEvaluationContext; import org.eclipse.core.runtime.CoreException; @@ -144,7 +143,7 @@ public class LaunchShortcutsAction extends Action implements IMenuCreator, IWork else { list.addAll(ss.toList()); } - IEvaluationContext context = new EvaluationContext(null, list); + IEvaluationContext context = DebugUIPlugin.createEvaluationContext(list); context.setAllowPluginActivation(true); context.addVariable("selection", list); //$NON-NLS-1$ return context; |