Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2013-07-05 01:10:41 +0000
committerMarc-Andre Laperle2013-07-05 01:10:41 +0000
commit7a4be987b40681d688620c0383ad776035dba366 (patch)
treef6ae7e30d74cfd1279c452940e10d4706abf1375
parente320522e706e522c0b29f2b7d8f771cf8b0933ac (diff)
downloadorg.eclipse.cdt-7a4be987b40681d688620c0383ad776035dba366.tar.gz
org.eclipse.cdt-7a4be987b40681d688620c0383ad776035dba366.tar.xz
org.eclipse.cdt-7a4be987b40681d688620c0383ad776035dba366.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>
-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 92f6ee216bd..85c36f1b5a4 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
@@ -13,6 +13,7 @@ package org.eclipse.cdt.dsf.gdb.internal.ui.launching;
import java.util.Arrays;
+import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
@@ -116,4 +117,14 @@ 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);
+ }
+ }
}

Back to the top