MCPcopy Create free account
hub / github.com/defold/defold / hyperlink

Method hyperlink

editor/src/java/com/defold/editor/UIUtil.java:65–75  ·  view source on GitHub ↗
(String text, String url)

Source from the content-addressed store, hash-verified

63
64
65 private static Hyperlink hyperlink(String text, String url) {
66 Hyperlink hyperlink = new Hyperlink(text);
67 hyperlink.setOnAction(event -> new Thread(() -> {
68 try {
69 Desktop.getDesktop().browse(URI.create(url));
70 } catch (IOException e) {
71 e.printStackTrace();
72 }
73 }).start());
74 return hyperlink;
75 }
76
77 private static Text text(String str) {
78 Text text = new Text(str);

Callers 1

stringToTextFlowNodesMethod · 0.95

Calls 2

startMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected