-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arbitrary behavior for export package dialog #534
Comments
Nice catch! That's a bug. I can recreate it too |
relevant code: Lines 383 to 434 in 91ab862
I am unable to locate the code pertinent to the button and its selection change callback, so not sure if this is an in-built behaviour of the |
These are at least two threads that participate in this problem, so looks to me like a complex race condition.
|
There are potential race conditions that are happening between the dialog creation with empty list and the thread that populates the list and fires selection change events. An easy hack is to make sure the button is enabled whenever there are items in the list. This always works, as the default behavior of list makes sure that there is at least one item selected in a non-empty list. Fixes: eclipse-pde#534
There are potential race conditions that are happening between the dialog creation with empty list and the thread that populates the list and fires selection change events. An easy hack is to make sure the button is enabled whenever there are items in the list. This always works, as the default behavior of list makes sure that there is at least one item selected in a non-empty list. Fixes: eclipse-pde#534
* make export dialog add button follow list selection There are potential race conditions that are happening between the dialog creation with empty list and the thread that populates the list and fires selection change events. An easy hack is to make sure the button is enabled whenever there are items in the list. This always works, as the default behavior of list makes sure that there is at least one item selected in a non-empty list. Fixes: #534 * fixup: address review comments
steps to reproduce:
runtime
and click addShow non-java packages
a couple of timesAdd
buttonI see arbitrary behaviors for the
Add
button, w.r.t being enabled / disabled.The text was updated successfully, but these errors were encountered: