Commit 6e509ce8 authored by Luna Riegel's avatar Luna Riegel
Browse files

Feat: Add opening of homepage in browser

parent 978a663e
......@@ -301,6 +301,23 @@ public class CheckDialog {
selectNoneSCBtn.setOnAction(ae ->
semanticTable.getRoot().getChildren().forEach(item -> item.getValue().setEnabled(false)));
try {
final URI hpUrl = new URI(Localization.getText("CheckDialog.homepageHyperlink"));
homepageHyperlink.setOnAction(event -> {
try {
Desktop.getDesktop().browse(hpUrl);
} catch (IOException e) {
Alert alert = new Alert(Alert.AlertType.ERROR,
"Opening of hyperlink was blocked by the system.", ButtonType.OK);
alert.showAndWait();
}
});
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment