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 onChangeSelection and related events for inactive tabbed frames #4810

Merged

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented May 28, 2024

Identify the Bug or Feature request

Fixes #4709

Description of the Change

As an AWT component, inactive tabbed frames are considered not visible, so the existing check did not accomodate these. As a JIDE component they are considered not hidden, so we use that property instead.

Possible Drawbacks

If anyone is counting on inactive tabs not generating events, this will shock them.

Documentation Notes

Frames can generate onChangeSelection, onChangeToken, and onChangeImpersonated even when not the active tab.

Release Notes

  • Fixed a bug where hidden tabbed frames would not generate onChange* events.

This change is Reviewable

For dockable frames, the component itself is hidden if not the active tab so AWT's `isVisible()` returns false. However
JIDE and the user consider the frame still open, which agrees with `!isHidden()`.
@kwvanderlinde kwvanderlinde self-assigned this May 28, 2024
@cwisniew cwisniew added this pull request to the merge queue May 30, 2024
Merged via the queue into RPTools:develop with commit 7e376ea May 30, 2024
5 checks passed
@kwvanderlinde kwvanderlinde deleted the bugfix/4709-ocs-for-tabbed-frames branch June 28, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

[Bug]: onChangeSelection not triggering on hidden tabbed frames
2 participants