Package com.google.gwt.core.ext.TreeLogger

Examples of com.google.gwt.core.ext.TreeLogger.HelpInfo


  public static void logUpdateAvailable(TreeLogger logger, UpdateResult result) {
    if (result != null) {
      final URL url = result.getURL();
      logger.log(TreeLogger.INFO, "A new version of GWT ("
          + result.getNewVersion() + ") is available", null, new HelpInfo() {
        @Override
        public URL getURL() {
          return url;
        }
      });
View Full Code Here


  public static void logUpdateAvailable(TreeLogger logger,
      UpdateResult result) {
    if (result != null) {
      final URL url = result.getURL();
      logger.log(TreeLogger.WARN, "A new version of GWT ("
          + result.getNewVersion() + ") is available", null, new HelpInfo() {
            @Override
            public String getAnchorText() {
              return "Release Notes";
            }
View Full Code Here

      } else {
        // Ignore all other problems.
        continue;
      }

      HelpInfo helpInfo = null;
      if (problem instanceof GWTProblem) {
        GWTProblem gwtProblem = (GWTProblem) problem;
        helpInfo = gwtProblem.getHelpInfo();
      }
      if (branch == null) {
View Full Code Here

              "Old LoadModule message used, but not v1 protocol");
        }
        moduleName = oldLoadModule.getModuleName();
        userAgent = oldLoadModule.getUserAgent();
        protocolVersion = 1;
        HelpInfo helpInfo = new HelpInfo() {
          @Override
          public String getAnchorText() {
            return "UsingOOPHM wiki page";
          }
View Full Code Here

  private static void reportJsniProblem(SourceInfo info,
      AbstractMethodDeclaration methodDeclaration, String message,
      int problemSeverity) {
    // TODO: provide helpInfo for how to write JSNI methods?
    HelpInfo jsniHelpInfo = null;
    CompilationResult compResult = methodDeclaration.compilationResult();
    // recalculate startColumn, because SourceInfo does not hold it
    int startColumn = Util.searchColumnNumber(compResult
        .getLineSeparatorPositions(), info.getStartLine(), info.getStartPos());
    GWTProblem.recordProblem(info, startColumn, compResult, message,
View Full Code Here

              msgBuf.append(line);
              msgBuf.append(": ");
            }
            msgBuf.append(msg);

            HelpInfo helpInfo = null;
            if (error instanceof GWTProblem) {
              GWTProblem gwtProblem = (GWTProblem) error;
              helpInfo = gwtProblem.getHelpInfo();
            }
            branch.log(TreeLogger.ERROR, msgBuf.toString(), null, helpInfo);
View Full Code Here

        msgBuf.append(line);
        msgBuf.append(": ");
      }
      msgBuf.append(problem.getMessage());

      HelpInfo helpInfo = null;
      if (problem instanceof GWTProblem) {
        GWTProblem gwtProblem = (GWTProblem) problem;
        helpInfo = gwtProblem.getHelpInfo();
      }
      if (branch == null) {
View Full Code Here

      TreeLogger branch = this.getBranch();
      if (null == branch) {
        final Type type = this.getType();
        final String message = this.getMessage();
        final Throwable caught = this.getCaught();
        final HelpInfo helpInfo = this.getHelpInfo();
        branch = commitBranch(type, message, caught, helpInfo);
        this.setBranch(branch);
      }
      branch.log(type0, message0, caught0);
    }
View Full Code Here

      }

      final Type type0 = this.getType();
      final String message0 = this.getMessage();
      final Throwable caught0 = this.getCaught();
      final HelpInfo helpInfo0 = this.getHelpInfo();
      logger = logger.branch(type0, message0, caught0, helpInfo0);

      return logger;
    }
View Full Code Here

  protected void openHelpOnSelection(Tree tree) {
    TreeItem[] selected = tree.getSelection();
    for (TreeItem item : selected) {
      Object itemData = item.getData();
      if (itemData instanceof HelpInfo) {
        HelpInfo helpInfo = (HelpInfo) itemData;
        URL url = helpInfo.getURL();
        if (url != null) {
          BrowserWidget.launchExternalBrowser(logger, url.toString());
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.TreeLogger.HelpInfo

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.