From 2e21d2516d9a3798c5a17d547501da38e4a29b20 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Tue, 25 Jun 2013 16:54:19 -0400 Subject: [PATCH] Bug 410821 - The process select dialog on "Attach" should react to double-click Change-Id: Ib34dfbda529dc8edf54c5f1e2e2435d003e697af Reviewed-on: https://git.eclipse.org/r/14059 Reviewed-by: Mikhail Khodjaiants IP-Clean: Mikhail Khodjaiants Tested-by: Mikhail Khodjaiants Reviewed-by: Marc Khouzam IP-Clean: Marc Khouzam Tested-by: Marc Khouzam --- .../internal/ui/launching/ProcessPrompterDialog.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompterDialog.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompterDialog.java index 623c148e386..b5db406d302 100644 --- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompterDialog.java +++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompterDialog.java @@ -116,6 +116,17 @@ public class ProcessPrompterDialog extends TwoPaneElementSelector { return list; } + /* + * Allow a double-click to work without any selection + * in the bottom list. + */ + @Override + protected void handleDefaultSelected() { + if (validateCurrentSelection()) { + buttonPressed(IDialogConstants.OK_ID); + } + } + public NewExecutableInfo getExecutableInfo() { return fExecInfo; }