Search in sources :

Example 11 with ErrorDialog

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;
}
Also used : ErrorDialog(com.google.gerrit.client.ErrorDialog) CodeDownloadException(com.google.gwt.core.client.CodeDownloadException) CodeDownloadException(com.google.gwt.core.client.CodeDownloadException)

Aggregations

ErrorDialog (com.google.gerrit.client.ErrorDialog)11 NativeString (com.google.gerrit.client.rpc.NativeString)4 ScheduledCommand (com.google.gwt.core.client.Scheduler.ScheduledCommand)2 NotSignedInDialog (com.google.gerrit.client.NotSignedInDialog)1 GroupMap (com.google.gerrit.client.groups.GroupMap)1 AccountInfo (com.google.gerrit.client.info.AccountInfo)1 RevisionInfo (com.google.gerrit.client.info.ChangeInfo.RevisionInfo)1 BranchInfo (com.google.gerrit.client.projects.BranchInfo)1 TagInfo (com.google.gerrit.client.projects.TagInfo)1 GerritCallback (com.google.gerrit.client.rpc.GerritCallback)1 AccessSection (com.google.gerrit.common.data.AccessSection)1 GroupReference (com.google.gerrit.common.data.GroupReference)1 PermissionRule (com.google.gerrit.common.data.PermissionRule)1 ProjectAccess (com.google.gerrit.common.data.ProjectAccess)1 CodeDownloadException (com.google.gwt.core.client.CodeDownloadException)1 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 Request (com.google.gwt.http.client.Request)1 RequestBuilder (com.google.gwt.http.client.RequestBuilder)1 RequestCallback (com.google.gwt.http.client.RequestCallback)1