use of com.google.gerrit.client.ErrorDialog in project gerrit by GerritCodeReview.
the class PluginLoader method hadFailures.
private boolean hadFailures() {
boolean failed = false;
for (Plugin plugin : Natives.asList(plugins().values())) {
if (!plugin.success()) {
failed = true;
Exception e = plugin.failure();
String msg;
if (e != null && e instanceof CodeDownloadException) {
msg = Gerrit.M.cannotDownloadPlugin(plugin.url());
} else {
msg = Gerrit.M.pluginFailed(plugin.name());
}
hide(true);
new ErrorDialog(msg).center();
}
}
return failed;
}
Aggregations