@Override
 public void onRSConnectDeploymentCompleted(RSConnectDeploymentCompletedEvent event) {
   view_.compileCompleted();
   setIsBusy(false);
   if (switchToConsoleAfterDeploy_ && event.succeeded()) {
     events_.fireEvent(new ConsoleActivateEvent(false));
   }
 }
  @Override
  public void onRSConnectDeploymentCompleted(RSConnectDeploymentCompletedEvent event) {
    if (!event.succeeded()) return;

    // when a deployment is successful, refresh ourselves. Consider: it's
    // a little wasteful to do this whether or not the deployment was for
    // the content on which this button is hosted, but there are unlikely to
    // be more than a couple publish buttons at any one time, and this is
    // cheap (just hits the local disk)
    populateDeployments(true);
  }