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

8214158: Implement HostServices.showDocument on macOS without calling AWT #634

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -36,7 +36,7 @@
import javafx.stage.Stage;

public class HostServicesShowDocumentTest extends Application {

private final static String testHtmlUri = new File("test.html").toURI().toString();
private final static String testTxtUri = new File("test.txt").toURI().toString();
private final static String testCsvUri = new File("test.csv").toURI().toString();
@@ -56,17 +56,17 @@ public void start(Stage primaryStage) throws Exception {
showHtmlButton.setOnAction(e -> {
this.getHostServices().showDocument(testHtmlUri);
});

Button showTxtButton = new Button("TXT");
showTxtButton.setOnAction(e -> {
this.getHostServices().showDocument(testTxtUri);
});

Button showCsvButton = new Button("CSV");
showCsvButton.setOnAction(e -> {
this.getHostServices().showDocument(testCsvUri);
});

Button passButton = new Button("Pass");
passButton.setOnAction(e -> {
Platform.exit();