Skip to content

NextButton not disabled toggling "Hide items that are already installed"#1048

Merged
merks merged 1 commit intoeclipse-equinox:masterfrom
subyssurendran666:next_button_being_enabled_1036
Apr 30, 2026
Merged

NextButton not disabled toggling "Hide items that are already installed"#1048
merks merged 1 commit intoeclipse-equinox:masterfrom
subyssurendran666:next_button_being_enabled_1036

Conversation

@subyssurendran666
Copy link
Copy Markdown
Contributor

Toggling "Hide items that are already installed" refreshes the available software view, but the wizard does not update the Next button state. This change ensures the Next button is disabled when no installable units are selected.

fix: #1036

@subyssurendran666
Copy link
Copy Markdown
Contributor Author

Please check the parent issue for more details

@subyssurendran666 subyssurendran666 force-pushed the next_button_being_enabled_1036 branch from 6c4796e to b0dfa9e Compare March 16, 2026 15:22
@subyssurendran666
Copy link
Copy Markdown
Contributor Author

@laeubi Could you please trigger the GitHub Copilot review for this PR?

Copy link
Copy Markdown
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

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

I wonder, is it really necessary to use asyncExec? Better in general to get the display from a widget in the context.

@subyssurendran666 subyssurendran666 force-pushed the next_button_being_enabled_1036 branch from b0dfa9e to 7c59010 Compare April 29, 2026 09:20
@subyssurendran666 subyssurendran666 requested a review from merks April 29, 2026 09:23
Copy link
Copy Markdown
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

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

Wow, this code is kind of terrible to begin with before you improved it. Sorry I didn't look closer before.

There appear to be three identical listeners each with two methods that have identical bodies, so like 6 copies in all! Better would be to create one listener (adding it 3 times to the separate controls) and to de-duplicate the identical bodies. Sorry, I know you didn't make it ugly like this, but it would sure be nice to improve it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 29, 2026

Test Results

   18 files     18 suites   29m 27s ⏱️
1 902 tests 1 899 ✅ 3 💤 0 ❌
5 161 runs  5 152 ✅ 9 💤 0 ❌

Results for commit ea194b6.

♻️ This comment has been updated with latest results.

@subyssurendran666 subyssurendran666 requested a review from merks April 29, 2026 16:31
@subyssurendran666 subyssurendran666 force-pushed the next_button_being_enabled_1036 branch from 7c59010 to 32ddad6 Compare April 30, 2026 06:47
@subyssurendran666
Copy link
Copy Markdown
Contributor Author

I wonder, is it really necessary to use asyncExec? Better in general to get the display from a widget in the context.

I had a reason for using asyncExec here. In this case it is still required because the viewer state (checked elements) is updated after update available ViewState, so a synchronous call reads stale data. Using asyncExec ensures the UI refresh is complete before evaluating the selection state. Could you please suggest an alternative approach to handle this more cleanly?

Copy link
Copy Markdown
Contributor

@merks merks left a comment

Choose a reason for hiding this comment

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

This looks so much better❣️

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 30, 2026

@HannesWell

Is the failure

08:10:33 [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:5.0.3-SNAPSHOT:test (default-test) on project org.eclipse.equinox.p2.tests.verifier: No tests found -> [Help 1]

perhaps related to this change

4b7608b

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 30, 2026

FYI, I have this in the works hopefully to fix PR build failures:

#1061

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 30, 2026

I'll rebase to get a cleaner build.

Toggling "Hide items that are already installed" refreshes the available
software view, but the wizard does not update the Next button state.
This change ensures the Next button is disabled when no installable
units are selected.

fix: eclipse-equinox#1036
@merks merks force-pushed the next_button_being_enabled_1036 branch from 32ddad6 to ea194b6 Compare April 30, 2026 09:34
@merks merks merged commit 49759ef into eclipse-equinox:master Apr 30, 2026
12 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.

Next button remains enabled when no items are selected after toggling "Hide items that are already installed"

2 participants