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

Fix open maven subproject context menu #7723

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

mbien
Copy link
Member

@mbien mbien commented Sep 2, 2024

attempt to fix UI issue of not selectable sub context menu on some configurations (wayland+flatlaf).

Lazy init logic will create the JPopupMenu only once now. It appears the problem was caused by changing the menu between consecutive getJPopupMenu() calls. Debugging showed that the menu was created 5 times every time it popped up - this wasn't necessary.

This change affects only the "Open Required Projects" maven sub-context menu, so it is fairly isolated from everything else -> should be low risk for NB 23.

fixes #7720

@mbien mbien added Maven [ci] enable "build tools" tests UI User Interface ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Sep 2, 2024
attempt to fix UI issue of not selectable sub context menu on some
configurations (wayland+flatlaf).

Lazy init logic will create the JPopupMenu only once now.
@mbien mbien changed the base branch from master to delivery September 2, 2024 19:45
@mbien mbien force-pushed the fix-maven-subproject-context-menu branch from 0a2287e to 2c99e0f Compare September 2, 2024 19:46
@mbien mbien added this to the NB23 milestone Sep 2, 2024
@mbien mbien marked this pull request as ready for review September 2, 2024 19:47
@mbien mbien requested a review from sdedic September 2, 2024 19:51
@ebarboni
Copy link
Contributor

ebarboni commented Sep 3, 2024

LGTM

@ebarboni ebarboni merged commit e2ce49c into apache:delivery Sep 3, 2024
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Look and Feel Maven [ci] enable "build tools" tests UI User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context menu "Open Required Projects >" opens an defunct sub-menu
3 participants