Package com.google.testing.testify.risk.frontend.client.view.widgets

Examples of com.google.testing.testify.risk.frontend.client.view.widgets.StandardDialogBox$StandardDialogBoxUiBinder


    displayErrorMessage(errorText, null);
  }

  /** Displays an error message along with the provided exception information. */
  public static void displayErrorMessage(String errorMessage, Throwable exception) {
    StandardDialogBox widget = new StandardDialogBox();
    widget.setTitle("Oh snap! Test Analytics encountered an error.");
    widget.add(new Label(errorMessage));

    if (exception != null) {
      StringBuilder exceptionMessageText = new StringBuilder();
      exceptionMessageText.append("Exception of type: " + exception.getClass().getName());
      exceptionMessageText.append("\n");
      exceptionMessageText.append(exception.getMessage());
      widget.add(new Label(exceptionMessageText.toString()));
    }

    StandardDialogBox.showAsDialog(widget);
  }
View Full Code Here


        }

        // If there's a warning to save, then display it and require confirmation before saving.
        // Otherwise, just save.
        if (warning.length() > 0) {
          StandardDialogBox box = new StandardDialogBox();
          box.setTitle("Permission Changes");
          box.add(new HTML("You are changing some of the permissions for this project."
              + warning.toString() + "<br><br>"));
          box.addDialogClosedHandler(new DialogClosedHandler() {
              @Override
              public void onDialogClosed(DialogClosedEvent event) {
                if (event.getResult().equals(DialogResult.OK)) {
                  presenter.onUpdateProjectInfoClicked(projectName.getText(),
                      projectDescription.getText(), newOwners, newEditors, newViewers,
View Full Code Here

TOP

Related Classes of com.google.testing.testify.risk.frontend.client.view.widgets.StandardDialogBox$StandardDialogBoxUiBinder

Copyright © 2018 www.massapicom. 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.