use of org.pentaho.di.ui.core.dialog.BrowserEnvironmentWarningDialog in project pentaho-kettle by pentaho.
the class Spoon method checkEnvironment.
private void checkEnvironment() {
if (EnvironmentUtils.getInstance().isBrowserEnvironmentCheckDisabled()) {
webkitUnavailable = null;
unsupportedBrowserEnvironment = null;
availableBrowser = "";
return;
}
webkitUnavailable = EnvironmentUtils.getInstance().isWebkitUnavailable();
unsupportedBrowserEnvironment = EnvironmentUtils.getInstance().isUnsupportedBrowserEnvironment();
availableBrowser = EnvironmentUtils.getInstance().getBrowserName();
if (webkitUnavailable) {
(new BrowserEnvironmentWarningDialog(shell)).showWarningDialog(BrowserEnvironmentWarningDialog.EnvironmentCase.UBUNTU);
return;
}
if (unsupportedBrowserEnvironment) {
if (availableBrowser.contains(EnvironmentUtils.WINDOWS_BROWSER)) {
(new BrowserEnvironmentWarningDialog(shell)).showWarningDialog(BrowserEnvironmentWarningDialog.EnvironmentCase.WINDOWS);
} else if (availableBrowser.contains(EnvironmentUtils.MAC_BROWSER)) {
(new BrowserEnvironmentWarningDialog(shell)).showWarningDialog(BrowserEnvironmentWarningDialog.EnvironmentCase.MAC_OS_X);
}
}
}
Aggregations