Package com.google.collide.client.status

Examples of com.google.collide.client.status.StatusMessage.addAction()


      @Override
      public void onFail(FailureReason reason) {
        StatusMessage msg = new StatusMessage(statusManager, MessageType.FATAL, FATAL_MESSAGE);
        msg.addAction(StatusMessage.FEEDBACK_ACTION);
        msg.addAction(StatusMessage.RELOAD_ACTION);
        msg.setLongText(calculateLongText(ExceptionUtils.getStackTraceAsString(exception)));
        msg.fire();
      }
    });
  }
View Full Code Here


   * must be called before it is shown to the user.
   */
  public static StatusMessage createReloadableDismissableErrorStatus(
      StatusManager manager, String title, String longText) {
    StatusMessage error = StatusMessageUtils.createDismissableErrorStatus(manager, title, longText);
    error.addAction(StatusMessage.RELOAD_ACTION);
    return error;
  }

  /**
   * Creates a dismissable error {@link StatusMessage}. {@link StatusMessage#fire()} must be called
View Full Code Here

          public void onFail(FailureReason reason) {
            Log.error(getClass(), "Failed to retrieve file metadata for workspace.");
            StatusMessage fatal = new StatusMessage(
                fileTreeController.getStatusManager(), MessageType.FATAL,
                "There was a problem refreshing changes within the file tree :(.");
            fatal.addAction(StatusMessage.RELOAD_ACTION);
            fatal.setDismissable(true);
            fatal.fire();
          }
        });
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.