Class LinkBrowser


  • @Singleton
    public class LinkBrowser
    extends java.lang.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​(java.lang.String url)
      Tries to navigate to specified URL in browser.
      static void open​(java.lang.String directory)
      Tries to open a directory in the OS native file manager.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkBrowser

        public LinkBrowser()
    • Method Detail

      • browse

        public static void browse​(java.lang.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​(java.lang.String directory)
        Tries to open a directory in the OS native file manager.
        Parameters:
        directory - directory to open