Permalink
Browse files

7.1.1

  • Loading branch information...
1 parent cb66eaa commit ffacc46df3277e51df6c6f170bfbe313b6bca464 @mageshbk committed Mar 16, 2012
@@ -26,6 +26,9 @@
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.DelayedBindRegistry;
@@ -107,7 +110,25 @@ public void onSuccess() {
// viz can be loaded in background ...
//bootstrap.addHook(new LoadGoogleViz());
- bootstrap.execute();
+ bootstrap.execute(new AsyncCallback<Boolean>() {
+ @Override
+ public void onFailure(Throwable caught) {
+ error("Bootstrap failed", caught.getMessage());
+ }
+
+ @Override
+ public void onSuccess(Boolean wasSuccessfull) {
+ if(!wasSuccessfull)
+ {
+ // currently we only deal with authentication errors
+ RootLayoutPanel.get().remove(loadingPanel);
+
+ HTMLPanel explanation = new HTMLPanel("<center><div style='padding-top:150px;'>The web console could not be loaded. Please refresh this page to start over.</div></center>");
+ RootLayoutPanel.get().add(explanation);
+ }
+
+ }
+ });
}
});
@@ -165,5 +165,12 @@ public void setSubsystems(List<SubsystemRecord> subsystems) {
}
+ public void clearSelection() {
+ serverPicker.clearSelection();
+ }
+
+ public void setSelectedServer(String hostName, ServerInstance server) {
+ serverPicker.setSelected(server, true);
+ }
}

0 comments on commit ffacc46

Please sign in to comment.