-
Notifications
You must be signed in to change notification settings - Fork 473
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
8214158: Implement HostServices.showDocument on macOS without calling AWT #634
Conversation
👋 Welcome back mpaus! A progress list of the required criteria for merging this PR into |
To avoid this situation, create a new branch for your changes and reset the
Then proceed to create a new pull request with |
Webrevs
|
/reviewers 2 |
@kevinrushforth |
This seems like a good RFE. I have a couple overall questions. First, calling
Can you comment on this? Second, can you provide a manual test for this? I was thinking something that would go somewhere under |
First of all. Shall I follow the bot request above and create a new pull request? Wouldn't we loose the discussion here then? |
To answer your questions:
The code fragment above reliably opens the HTML document in Firefox (my default browser), the text document in BBEdit (my default text editor) and the CSV document in LibreOffice (my default Excel :-) This also works if you just use the plain strings without conversion to an URI. Here are the printed Java/FX version strings for completness:
|
As long as you don't otherwise need to update your
I think calling
In that case, can you create a new manual test as part of this PR? I recommend a new directory: |
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.
Both the fix and the test look good. I left two minor formatting comments, but I'll approve it as-is. If you want to fix them, I'll re-approve.
tests/manual/desktop/HostServices/HostServicesShowDocumentTest.java
Outdated
Show resolved
Hide resolved
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.
Looks good. Verified on Mac and Windows.
@mipastgt 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinrushforth, @arapte) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
/sponsor |
@kevinrushforth @mipastgt Pushed as commit f3c72b9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Fixes the issue by using the "open" command as discussed before.
See: https://bugs.openjdk.java.net/browse/JDK-8214158
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jfx pull/634/head:pull/634
$ git checkout pull/634
Update a local copy of the PR:
$ git checkout pull/634
$ git pull https://git.openjdk.java.net/jfx pull/634/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 634
View PR using the GUI difftool:
$ git pr show -t 634
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jfx/pull/634.diff