diff options
author | Marc Khouzam | 2013-06-25 20:54:19 +0000 |
---|---|---|
committer | Marc Khouzam | 2013-07-03 10:55:47 +0000 |
commit | 0792d2d82621ac701c2b44a52b9355c486842013 (patch) | |
tree | 0c1753b877262252b9cf20f8cc6ce2d14ff3fba1 /dsf-gdb | |
parent | cca1933f7a8c8e851f6f47fa282a4e8713fe68b1 (diff) | |
download | org.eclipse.cdt-0792d2d82621ac701c2b44a52b9355c486842013.tar.gz org.eclipse.cdt-0792d2d82621ac701c2b44a52b9355c486842013.tar.xz org.eclipse.cdt-0792d2d82621ac701c2b44a52b9355c486842013.zip |
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 <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'dsf-gdb')
-rw-r--r-- | dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/launching/ProcessPrompterDialog.java | 11 |
1 files changed, 11 insertions, 0 deletions
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; } |