Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2013-06-25 20:54:19 +0000
committerMarc Khouzam2013-07-03 10:55:47 +0000
commit0792d2d82621ac701c2b44a52b9355c486842013 (patch)
tree0c1753b877262252b9cf20f8cc6ce2d14ff3fba1 /dsf-gdb
parentcca1933f7a8c8e851f6f47fa282a4e8713fe68b1 (diff)
downloadorg.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.java11
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;
}

Back to the top