Package org.pentaho.di.ui.util
Class EnvironmentUtils
- java.lang.Object
-
- org.pentaho.di.ui.util.EnvironmentUtils
-
public class EnvironmentUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAC_BROWSERstatic StringUBUNTU_BROWSERstatic StringWINDOWS_BROWSER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBrowserName()Ask for the browser name.static EnvironmentUtilsgetInstance()booleanisBrowserEnvironmentCheckDisabled()Ask if the browsing environment checks are disabled.booleanisUnsupportedBrowserEnvironment()Checks the available browser to see if it is an unsupported one.booleanisWebkitUnavailable()Checks the existence of the webkit library on ubuntu.
-
-
-
Field Detail
-
UBUNTU_BROWSER
public static final String UBUNTU_BROWSER
- See Also:
- Constant Field Values
-
MAC_BROWSER
public static final String MAC_BROWSER
- See Also:
- Constant Field Values
-
WINDOWS_BROWSER
public static final String WINDOWS_BROWSER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static EnvironmentUtils getInstance()
-
isUnsupportedBrowserEnvironment
public boolean isUnsupportedBrowserEnvironment()
Checks the available browser to see if it is an unsupported one.- Returns:
- 'true' if in a unSupported browser environment 'false' otherwise.
-
isWebkitUnavailable
public boolean isWebkitUnavailable()
Checks the existence of the webkit library on ubuntu.- Returns:
- 'true' if the webkit library is not present in ubuntu, 'false' otherwise.
-
isBrowserEnvironmentCheckDisabled
public boolean isBrowserEnvironmentCheckDisabled()
Ask if the browsing environment checks are disabled.- Returns:
- 'true' if disabled 'false' otherwise.
-
getBrowserName
public String getBrowserName()
Ask for the browser name.- Returns:
- a String that contains the browser name.
-
-