csli.util
Class BareBonesBrowserLaunch

java.lang.Object
  extended by csli.util.BareBonesBrowserLaunch

public class BareBonesBrowserLaunch
extends Object


Constructor Summary
BareBonesBrowserLaunch()
           
 
Method Summary
static boolean openURL(String url)
          Try to open a URL on any platform with a browser.
static boolean openURL(String url, boolean tryOnWindows, boolean tryOnMac, boolean tryOnLinuxUnix)
          Try to open a URL on any platform with a browser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BareBonesBrowserLaunch

public BareBonesBrowserLaunch()
Method Detail

openURL

public static boolean openURL(String url)
Try to open a URL on any platform with a browser. Works best on windows. I have not tested it on a mac, and looking at it it is definitely a bit sketchy on linux but will probably work Tries to open a url on any operating systems

Parameters:
url - the url to open
Returns:
true on success

openURL

public static boolean openURL(String url,
                              boolean tryOnWindows,
                              boolean tryOnMac,
                              boolean tryOnLinuxUnix)
Try to open a URL on any platform with a browser. Works best on windows. I have not tested it on a mac, and looking at it it is definitely a bit sketchy on linux but will probably work Will only try if the operating system detected is one of the passed in ones

Parameters:
url - the url to open
tryOnWindows - Should we try if it's windows?
tryOnMac - Should we try if it's a mac?
tryOnLinuxUnix - Should we try if it's linux or unix (basically if it's not windows or mac)
Returns:
true on success