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

tmf: Fix addMenuDetectListener() change of behavior in 4.32 #69

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

PatrickTasse
Copy link
Contributor

In TmfVirtualTable, we override Widget.addListener() to defer the listener to the Table child of the Composite.

In 4.32, Control.addMenuDetectListener() implementation changed from calling addListener() to calling the new protected method addTypedListener().

See eclipse-platform/eclipse.platform.swt#1112

Since we can't override properly this new method (we can override it but the override implementation can't call the protected method on another Control), we must override addMenuDetectListener() instead.

In TmfVirtualTable, we override Widget.addListener() to defer the
listener to the Table child of the Composite.

In 4.32, Control.addMenuDetectListener() implementation changed from
calling addListener() to calling the new protected method
addTypedListener().

See eclipse-platform/eclipse.platform.swt#1112

Since we can't override properly this new method (we can override it but
the override implementation can't call the protected method on another
Control), we must override addMenuDetectListener() instead.

Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Copy link
Contributor

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

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

Thanks for this! LGTM

@PatrickTasse PatrickTasse merged commit 68920af into eclipse-tracecompass:master Apr 30, 2024
4 checks passed
@PatrickTasse PatrickTasse deleted the listener branch April 30, 2024 20:47
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.

2 participants