Package com.google.gxp.compiler.codegen

Examples of com.google.gxp.compiler.codegen.DuplicateMessageNameError


    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_duplicateName() throws Exception {
    compile("<gxp:msg name='ONE'></gxp:msg><gxp:msg name='ONE'></gxp:msg>");
    assertAlert(new DuplicateMessageNameError(pos(2, 31), "ONE"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here


    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_duplicateNameViaDefault() throws Exception {
    compile("<gxp:msg name='ONE'></gxp:msg><gxp:msg java:name='ONE'></gxp:msg>");
    assertAlert(new DuplicateMessageNameError(pos(2,31), "ONE"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

      @Override
      public Expression visitExtractedMessage(ExtractedMessage msg) {
        if (isNamed(msg)) {
          String name = msg.getName(OutputLanguage.JAVA);
          if (names.contains(name)) {
            alertSink.add(new DuplicateMessageNameError(msg, name));
          } else {
            names.add(name);
          }
        }
        return super.visitExtractedMessage(msg);
View Full Code Here

    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_duplicateName() throws Exception {
    compile("<gxp:msg name='ONE'></gxp:msg><gxp:msg name='ONE'></gxp:msg>");
    assertAlert(new DuplicateMessageNameError(pos(2, 31), "ONE"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

    assertNoUnexpectedAlerts();
  }
 
  public void testNamedMsg_duplicateNameViaDefault() throws Exception {
    compile("<gxp:msg name='ONE'></gxp:msg><gxp:msg java:name='ONE'></gxp:msg>");
    assertAlert(new DuplicateMessageNameError(pos(2,31), "ONE"));
    assertNoUnexpectedAlerts();
  }
View Full Code Here

      @Override
      public Expression visitExtractedMessage(ExtractedMessage msg) {
        if (isNamed(msg)) {
          String name = msg.getName(OutputLanguage.JAVA);
          if (names.contains(name)) {
            alertSink.add(new DuplicateMessageNameError(msg, name));
          } else {
            names.add(name);
          }
        }
        return super.visitExtractedMessage(msg);
View Full Code Here

      @Override
      public Expression visitExtractedMessage(ExtractedMessage msg) {
        if (isNamed(msg)) {
          String name = msg.getName(SCALA);
          if (names.contains(name)) {
            alertSink.add(new DuplicateMessageNameError(msg, name));
          } else {
            names.add(name);
          }
        }
        return super.visitExtractedMessage(msg);
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.codegen.DuplicateMessageNameError

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.