Package net.runelite.client.util
Class LinkBrowser
- java.lang.Object
-
- net.runelite.client.util.LinkBrowser
-
@Singleton public class LinkBrowser extends Object
Utility class used for web and file browser navigation
-
-
Constructor Summary
Constructors Constructor Description LinkBrowser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
browse(String url)
Tries to navigate to specified URL in browser.static void
open(String directory)
Tries to open a directory in the OS native file manager.
-
-
-
Method Detail
-
browse
public static void browse(String url)
Tries to navigate to specified URL in browser. In case operation fails, displays message box with message and copies link to clipboard to navigate to.
-
open
public static void open(String directory)
Tries to open a directory in the OS native file manager.- Parameters:
directory
- directory to open
-
-