Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
Protos
Nomad 3D
nomad-3d-editor
Commits
a660cb58
Commit
a660cb58
authored
Jul 06, 2017
by
Ivan Dages
Browse files
url icon
parent
0ecf4b14
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/fr/ill/ics/n3d/gui/EditorMenuBar.java
View file @
a660cb58
...
...
@@ -1600,12 +1600,15 @@ public class EditorMenuBar extends MenuBar {
helpStage
.
show
();
});
MenuItem
wikiItem
=
new
MenuItem
(
"Wiki"
);
ImageView
urlView
=
new
ImageView
(
Nomad3DImporter
.
createImage
(
"img/url_icon.png"
));
urlView
.
setFitWidth
(
15
);
urlView
.
setPreserveRatio
(
true
);
wikiItem
.
setGraphic
(
urlView
);
wikiItem
.
setOnAction
(
event
->
{
try
{
java
.
awt
.
Desktop
.
getDesktop
().
browse
(
new
java
.
net
.
URI
(
"https://code.ill.fr/instrument-control/protos/nomad-3d/nomad-3d-commons/wikis/home"
));
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
catch
(
URISyntaxException
e
)
{
}
catch
(
Exception
e
)
{
Logger
.
getLogger
(
"nomad-3d"
).
severe
(
e
.
getMessage
());
e
.
printStackTrace
();
}
});
...
...
src/main/resources/img/url_icon.png
0 → 100644
View file @
a660cb58
12.3 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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