Community
Participate
Working Groups
Run the following snippet on Windows and GTK, and notice that the text is selected. Now run it on Motif and notice that the text is not selected. Didn't try it on Mac. Should probably have selectAll behavior on all platforms. import org.eclipse.swt.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.layout.*; public class ComboSelectAllFocusTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new FormLayout()); String items[] = {"one", "two", "three"}; Combo combo = new Combo(shell, SWT.SINGLE | SWT.BORDER); combo.setItems(items); combo.setText(items[0]); shell.pack(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } } }
I thought there was an old bug noting this behavior in the context of the Find/Replace dialog, but I can't find it. It looks like the behavior was worked around for the Find/Replace dialog's Find field (but not the Replace field). Anyhow, if the Motif behavior is made consistent with Win and GTK, then I suspect that the work-around in the Find/Replace dialog can be removed.
Aha - I found it: bug 10407. So if we emulate the "select all" behavior on Motif, the old bug should be reopened to remove the work-around.
Grant to prioritize.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it and remove the stalebug whiteboard tag. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. --