Commit a660cb58 authored by Ivan Dages's avatar Ivan Dages
Browse files

url icon

parent 0ecf4b14
......@@ -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();
}
});
......
Markdown is supported
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