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

Adds capability to display warnings in LaunchBar Launch Config Dialog #879

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

betamaxbandit
Copy link
Contributor

@betamaxbandit betamaxbandit commented Aug 1, 2024

Add SWTBot to test that the Launch Configuration, when opened via the Launch Bar, displays a warning in the message area.

The launch config warnings functionality offered by [1] is now available to users of the Launch Bar.

[1] eclipse-platform/eclipse.platform@231ef13

@jonahgraham
Copy link
Member

This looks like a great test @betamaxbandit

@betamaxbandit
Copy link
Contributor Author

Failing SWTBot test added.
Expected to fail with this message (as it has) until implementation added:

Timeout after: 10000 ms.: Incorrect warning message; expected=This is a warning, actual=Edit the new launch configuration properties

@betamaxbandit betamaxbandit force-pushed the launchConfigWarnings branch 3 times, most recently from c2a7e7a to ce3040f Compare August 6, 2024 23:30
Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

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

I just noticed the copyright error and had a quick look at the code which lgtm. Please set ready for review when ready for full review.

Add SWTBot to test that the Launch Configuration, when opened via the
Launch Bar, displays a warning in the message area.

The Launch Bar Launch Configuration is, confusingly, handled by 2
different classes depending on whether a new configuration is being
created (NewLaunchConfigEditPage) or edited
(LaunchBarLaunchConfigDialog).

When using NewLaunchConfigEditPage, the existing
LaunchConfigurationTabGroupViewer.getWarningMessage() mechanism is used.
This was added to eclipse-platform in Bug 386673 (commit 231ef13).

When using LaunchBarLaunchConfigDialog (when editing), the new
getWarningMessage() mechanism, copied from the existing, is used.

In both classes above, logic was added to update the message when a tab
change occurs.
@betamaxbandit betamaxbandit marked this pull request as ready for review August 7, 2024 12:55
@betamaxbandit
Copy link
Contributor Author

Hi @jonahgraham , I've set this PR for review now. I don't think there's anything for me to do on it right now. Waiting for you.
(not sure how to get rid of the "Merging is blocked" banner above.

@betamaxbandit
Copy link
Contributor Author

Hi @jonahgraham, do I need to do anything on this? Are you able to review this please?

@jonahgraham jonahgraham merged commit efbba15 into eclipse-cdt:main Sep 12, 2024
4 checks passed
@betamaxbandit
Copy link
Contributor Author

Thanks @jonahgraham

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