Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CityDoctor
CityDoctor2
Commits
6e509ce8
Commit
6e509ce8
authored
Feb 03, 2026
by
Luna Riegel
Browse files
Feat: Add opening of homepage in browser
parent
978a663e
Changes
1
Hide whitespace changes
Inline
Side-by-side
CityDoctorParent/Extensions/CityDoctorGUI/src/main/java/de/hft/stuttgart/citydoctor2/gui/CheckDialog.java
View file @
6e509ce8
...
@@ -301,6 +301,23 @@ public class CheckDialog {
...
@@ -301,6 +301,23 @@ public class CheckDialog {
selectNoneSCBtn
.
setOnAction
(
ae
->
selectNoneSCBtn
.
setOnAction
(
ae
->
semanticTable
.
getRoot
().
getChildren
().
forEach
(
item
->
item
.
getValue
().
setEnabled
(
false
)));
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
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment