- java.lang.Object
-
- util.browserlauncher.Launch
-
public class Launch extends java.lang.Object
This Class opens an Url in a Web-Browser. If the Web-Browser was not found or a problem occurred, the User is asked to enter his Web-Browser in the Configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static int
OS_LINUX
Linux OS JVMstatic int
OS_MAC
Mac OS JVMstatic int
OS_OTHER
Other OS JVMstatic int
OS_WINDOWS
Windows JVM
-
Constructor Summary
Constructors Constructor Description Launch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getOs()
Returns the OS of the VMstatic boolean
isOsWindowsNtBranch()
static void
openURL(java.lang.String url)
Opens an URL in a web-browser
-
-
-
Field Detail
-
OS_MAC
public static final int OS_MAC
Mac OS JVM- See Also:
- Constant Field Values
-
OS_WINDOWS
public static final int OS_WINDOWS
Windows JVM- See Also:
- Constant Field Values
-
OS_OTHER
public static final int OS_OTHER
Other OS JVM- See Also:
- Constant Field Values
-
OS_LINUX
public static final int OS_LINUX
Linux OS JVM- See Also:
- Constant Field Values
-
-
Method Detail
-
openURL
public static void openURL(java.lang.String url)
Opens an URL in a web-browser- Parameters:
url
- Url to open
-
getOs
public static int getOs()
Returns the OS of the VM- Returns:
- VM OS_MAC, OS_WINDOWS or OS_OTHER
-
isOsWindowsNtBranch
public static boolean isOsWindowsNtBranch()
- Returns:
- If the OS is Windows NT branch.
-
-