diff options
author | Curtis Windatt | 2009-11-09 17:52:45 +0000 |
---|---|---|
committer | Curtis Windatt | 2009-11-09 17:52:45 +0000 |
commit | fd836696c57b45691efd5a3dff341cc962b81c6e (patch) | |
tree | d04963c5f75a83d2acd5fe06124c34cdd3b0ba90 | |
parent | ce0308df3b5c2100052c9cefa20b356ef393eab6 (diff) | |
download | eclipse.platform.debug-fd836696c57b45691efd5a3dff341cc962b81c6e.tar.gz eclipse.platform.debug-fd836696c57b45691efd5a3dff341cc962b81c6e.tar.xz eclipse.platform.debug-fd836696c57b45691efd5a3dff341cc962b81c6e.zip |
Bug 76353 - [launching] Ctrl+click on debug or run toolbar button should open launch config for editing
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java index 0824e9a10..462828642 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/AbstractLaunchHistoryAction.java @@ -29,6 +29,7 @@ import org.eclipse.jface.action.Action; import org.eclipse.jface.action.ActionContributionItem; import org.eclipse.jface.action.IAction; import org.eclipse.jface.viewers.ISelection; +import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.SWT; import org.eclipse.swt.events.MenuAdapter; @@ -372,15 +373,17 @@ public abstract class AbstractLaunchHistoryAction implements IActionDelegate2, I * @since 3.6 */ public void runWithEvent(IAction action, Event event) { - if(event.stateMask == SWT.MOD1) { + if((event.stateMask & SWT.MOD1) > 0) { ILaunchConfiguration config = getLastLaunch(); - if(config != null) { - DebugUITools.openLaunchConfigurationDialogOnGroup( + IStructuredSelection selection = null; + if (config != null){ + selection = new StructuredSelection(config); + } + DebugUITools.openLaunchConfigurationDialogOnGroup( DebugUIPlugin.getShell(), - new StructuredSelection(config), + selection, getLaunchGroupIdentifier()); return; - } } run(action); } |