-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8328242: Add a log area to the PassFailJFrame #18319
8328242: Add a log area to the PassFailJFrame #18319
Conversation
👋 Welcome back azvegint! A progress list of the required criteria for merging this PR into |
@azvegint This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 18 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
The way you did it is as I imagined. As a result of the extra builder call, |
This reverts commit 77e5e4a.
Perhaps, we should change the approach a bit… and create re-usable components or something similar. For example, the logging area could be placed in a test UI window while the same logging methods would be used to add log messages. Such a component could also display or hide Clear Log button. It's more like a design idea to simplify adding new functionality and making it more isolated from the rest of the framework and thus re-usable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@azvegint logArea() can be listed here as additional feature.
* Use methods of the {@code Builder} class or constructors of the |
Thanks, added. |
We can revisit this later if we actually need to add buttons or other controls, for now the JTextArea seems sufficient. |
/integrate |
Going to push as commit 9bc1b06.
Your commit was automatically rebased without conflicts. |
Often manual tests have a text area in the instruction window to print feedback from the test to be evaluated by a tester.
I stumbled across another test that needed this, so I decided to make these changes a standard feature.
List of changes:
Pass
andFail
buttons panel.To do this, use the builder methods
logArea()
,logArea(int rows)
.PassFailJFrame.log(message)
,PassFailJFrame.logClear()
andPassFailJFrame.logSet()
are added to control this text area. (maybe I missed something?)invokeOnEDTUncheckedException
for easier use of logging methodsSo typical usage would be like:
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18319/head:pull/18319
$ git checkout pull/18319
Update a local copy of the PR:
$ git checkout pull/18319
$ git pull https://git.openjdk.org/jdk.git pull/18319/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18319
View PR using the GUI difftool:
$ git pr show -t 18319
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18319.diff
Webrev
Link to Webrev Comment