Community
Participate
Working Groups
Created attachment 198303 [details] Test project From bug 335402 comboModifyListener = new ModifyListener() { public void modifyText(ModifyEvent e) { String filePath = combo.getText(); combo.removeModifyListener(comboModifyListener); combo.removeAll(); // defers a Modify event?? combo.add(filePath); combo.setText(filePath); combo.addModifyListener(comboModifyListener); // Modify event actually processed after this } }; Resetting the content of the combobox defers a Modify event to after the listener is added which means the ModifyListener triggers and receives a Modify event constantly. This only seems to happen with GTK. I tested this with Win32 x86_64 and Cocoa 32 and it worked fine. I tested with 3.7-RC3 and RC4 but bug 335402 suggests that it happened in 3.6.x too.
I can reproduce the issue on SWT master of today.
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. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. 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. -- The automated Eclipse Genie.
It still happens as of 4.17-I20200729-1800
Created attachment 283880 [details] Test project