mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-19 14:15:50 +02:00
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>
This commit is contained in:
parent
e320522e70
commit
7a4be987b4
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue