Skip to content
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

make export dialog add button follow list selection #567

Merged

Conversation

gireeshpunathil
Copy link
Contributor

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

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Test Results

   234 files  ±0     234 suites  ±0   40m 31s ⏱️ - 1m 16s
3 279 tests ±0  3 253 ✔️ ±0  24 💤 ±0  1 ±0  1 🔥 ±0 
7 410 runs  ±0  7 360 ✔️ ±0  48 💤 ±0  1 ±0  1 🔥 ±0 

For more details on these failures and errors, see this check.

Results for commit 5e2255b. ± Comparison against base commit 9cddd29.

@vik-chand vik-chand self-requested a review April 11, 2023 13:22
Copy link
Member

@vik-chand vik-chand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a null check on fElements is a good idea. I see null check for fElements in some other parts in this file.

@vik-chand
Copy link
Member

Also update
Copyright (c) 2005, 2015

to

Copyright (c) 2005, 2023

@gireeshpunathil
Copy link
Contributor Author

@vik-chand -fixed both, thanks.

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
@vik-chand vik-chand force-pushed the export-package-dialog-add-button branch from 8a762aa to 2e76150 Compare April 11, 2023 13:39
@vik-chand vik-chand merged commit 70c912b into eclipse-pde:master Apr 11, 2023
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

arbitrary behavior for export package dialog
2 participants