MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / showURL

Method showURL

src/main/java/cc/slack/utils/other/FileUtil.java:72–80  ·  view source on GitHub ↗
(String url)

Source from the content-addressed store, hash-verified

70 }
71
72 public static void showURL(String url) {
73 try {
74 if (Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
75 Desktop.getDesktop().browse(new URI(url));
76 }
77 } catch (IOException | URISyntaxException e) {
78 e.printStackTrace();
79 }
80 }
81
82 public static void showFolder(String path) {
83 File folder = new File(Minecraft.getMinecraft().mcDataDir, path);

Callers 2

actionPerformedMenuMethod · 0.95
actionPerformedMenuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected