Package com.google.gxp.compiler.alerts.common

Examples of com.google.gxp.compiler.alerts.common.ContentTypeExpectedAlert


      if (type == null) {
        // Bail out without trying to construct Parameter.
        return null;
      }
      if (consumesContent && !type.isContent()) {
        alertSink.add(new ContentTypeExpectedAlert(node.getSourcePosition(),
                                                   node.getDisplayName(),
                                                   "when content='*' is set."));
        type = defaultType;
      }

View Full Code Here


    assertNoUnexpectedAlerts();
  }

  public void testParam_contentAndTypeSpecified() throws Exception {
    compile("<gxp:param name='foo' type='String' content='*' />");
    assertAlert(new ContentTypeExpectedAlert(pos(2, 1),
                                             "<gxp:param>",
                                             "when content='*' is set."));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

      if (type == null) {
        // Bail out without trying to construct Parameter.
        return null;
      }
      if (consumesContent && !type.isContent()) {
        alertSink.add(new ContentTypeExpectedAlert(node.getSourcePosition(),
                                                   node.getDisplayName(),
                                                   "when content='*' is set."));
        type = defaultType;
      }

View Full Code Here

    assertNoUnexpectedAlerts();
  }

  public void testParam_contentAndTypeSpecified() throws Exception {
    compile("<gxp:param name='foo' type='String' content='*' />");
    assertAlert(new ContentTypeExpectedAlert(pos(2, 1),
                                             "<gxp:param>",
                                             "when content='*' is set."));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.alerts.common.ContentTypeExpectedAlert

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.