Package com.google.gwt.dev.shell

Examples of com.google.gwt.dev.shell.FailErrorLogger


  private final static boolean LOG_TO_CONSOLE = false;

  static TreeLogger createFailOnErrorLogger() {
    TreeLogger logger = LOG_TO_CONSOLE ? new CompositeTreeLogger(
        new PrintWriterTreeLogger(), new FailErrorLogger())
        : new FailErrorLogger();
    return logger;
  }
View Full Code Here


    resources.add(BAZ);
    resources.add(PARENT);
    resources.add(PARENT_INT);
    resources.add(CHILD);
    resources.add(CHILD_INT);
    TreeLogger logger = new FailErrorLogger();
    CompilationState state =
        CompilationStateBuilder.buildFrom(logger, new CompilerContext(), resources);
    typeOracle = state.getTypeOracle();
    foo = typeOracle.getType("my.Foo");
    bar = typeOracle.getType("my.Bar");
View Full Code Here

      return code;
    }
  };

  public void testFindDerivedClasses() throws UnableToCompleteException {
    TreeLogger logger = new FailErrorLogger();
    TypeOracle oracle = TypeOracleTestingUtils.buildStandardTypeOracleWith(
        logger, LOCALIZABLE, TEST, TEST_IW, TEST_HE);
    JClassType clazz = oracle.findType("foo.Test");
    Map<String, JClassType> derivedClasses = LocalizableLinkageCreator.findDerivedClasses(logger, clazz);
    assertEquals(3, derivedClasses.size());
View Full Code Here

        derivedClasses.get("he").getQualifiedSourceName());
  }

  public void testLinkWithImplClass() throws UnableToCompleteException {
    LocalizableLinkageCreator llc = new LocalizableLinkageCreator();
    TreeLogger logger = new FailErrorLogger();
    TypeOracle oracle = TypeOracleTestingUtils.buildStandardTypeOracleWith(
        logger, LOCALIZABLE, TEST, TEST_IW);
    JClassType test = oracle.findType("foo.Test");
    GwtLocaleFactory factory = new GwtLocaleFactoryImpl();
    GwtLocale locale = factory.fromString("he");
View Full Code Here

  }

  @Override
  protected void setUp() throws NotFoundException {
    factory = new GwtLocaleFactoryImpl();
    TreeLogger logger = new FailErrorLogger();
    typeOracle = TypeOracleTestingUtils.buildStandardTypeOracleWith(
        logger, LOCALIZABLE, TEST, TEST_EN, TEST_EN_US, TEST_EN_GB, TEST_CLASS);
    test = typeOracle.getType("foo.Test");
    testClass = typeOracle.getType("foo.TestClass");
    bufs = new HashMap<String, StringWriter>();
View Full Code Here

*/
public class TypeOracleMessageTest extends MessageInterfaceTestBase {

  private static MessageInterface getMessageInterfaceInstance() {
    JClassType classType;
    TreeLogger logger = new FailErrorLogger();
    try {
      CompilerContext.Builder compilerContextBuilder = new CompilerContext.Builder();
      CompilerContext compilerContext = compilerContextBuilder.build();
      ModuleDef module = ModuleDefLoader.loadFromClassPath(logger,
          compilerContext, Child.class.getPackage().getName() + ".Testing");
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.shell.FailErrorLogger

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.