Community
Participate
Working Groups
Created attachment 281168 [details] I have attached video , you can see perfect result. we have a radio buttons and File dialog components in shell. First we select radio option and than we open file dialog to select file. After selecting we close file dailog, By default the first radio button is checked.it change the selection.
Moving to Platform... Please attach the source code for your example.
Hi, I verified a similar issue in our product (Jaspersoft Studio). Apparently the problem is related to the shell instance used to create the FileDialog. We were re-using the active shell coming from the current display. As a workaround give it a try creating in your code a temporary shell and later dispose it once done. It should work fine. For me it worked. By the way this behavior is verified only in Windows. In Mac everything works fine. I can confirm that in old Eclipse platform 4.7.3a everything worked fine. While it can be reproduced in both 4.12 and 4.14. I personally tested with our latest plugin installation in order to verify the issue was not caused by our code. I will try to register, later this week, a screencast with the steps to reproduce (in our product) and I will try to put down some sample code for it so maybe you can investigate.
Created attachment 281634 [details] Snippet to reproduce (In reply to Massimo Rabbi from comment #2) > I will try to register, later this week, a screencast with the steps to > reproduce (in our product) and I will try to put down some sample code for > it so maybe you can investigate. Thank you Massimo. A simple example to reproduce is always great. In this case I was able to modify SWT Snippet72 to reproduce this error. To reproduce select the second option, click open button, close dialog.
New Gerrit change created: https://git.eclipse.org/r/157366
*** Bug 559920 has been marked as a duplicate of this bug. ***
(In reply to Nikita Nemkin from bug 559920 comment #5) > Do you think your patch is still necessary if we fix focus saving? No. I think if the correct radio is the saved focus control that will work. However it was not trivial for me with all this nasty focus stuff. I took the easy way and restored what had worked once. If you want to try, feel free to fix focus saving.
New Gerrit change created: https://git.eclipse.org/r/157766
Gerrit change https://git.eclipse.org/r/157766 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=15a2d8703850db2f339c51b307d196fac98144a4
Verified using Build id: I20200407-1800 on Win10.