Package com.google.devtools.moe.client.project

Examples of com.google.devtools.moe.client.project.ProjectContext


        AppContext.RUN.ui.error(e, "Error creating DB");
        return 1;
      }
    }

    ProjectContext context;
    try {
      context = AppContext.RUN.contextFactory.makeProjectContext(options.configFilename);
    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
View Full Code Here


    return options;
  }

  @Override
  public int perform() {
    ProjectContext context;
    try {
      context = AppContext.RUN.contextFactory.makeProjectContext(options.configFilename);
    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
View Full Code Here

    return options;
  }

  @Override
  public int perform() {
    ProjectContext context;
    try {
      context = AppContext.RUN.contextFactory.makeProjectContext(options.configFilename);
    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
View Full Code Here

    return options;
  }

  @Override
  public int perform() {
    ProjectContext context;
    try {
      context = AppContext.RUN.contextFactory.makeProjectContext(options.configFilename);
    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
View Full Code Here

  private final DetermineMetadataOptions options = new DetermineMetadataOptions();

  @Override
  public int perform() {
    ProjectContext context;
    try {
      context = AppContext.RUN.contextFactory.makeProjectContext(options.configFilename);
    } catch (InvalidProject e) {
      AppContext.RUN.ui.error(e, "Error creating project");
      return 1;
View Full Code Here

      fail();
    } catch (WritingError expected) {}
  }

  public void testMakeWriter_DummyRepository() throws Exception {
    ProjectContext context = ProjectContext.builder().withRepositories(
        ImmutableMap.of("internal", DummyRepository.makeDummyRepository("internal", null))).build();
    new RepositoryExpression("internal").createWriter(context);
  }
View Full Code Here

    assertEquals(repoEx, c.getExpression());
  }

  public void testNoSuchEditor() throws Exception {
    try {
      ProjectContext context = ProjectContext.builder()
          .withEditors(ImmutableMap.<String, Editor>of())
          .build();
     
      IMocksControl control = EasyMock.createControl();
      RepositoryExpression mockRepoEx = control.createMock(RepositoryExpression.class);
View Full Code Here

    }
  }

  public void testNoSuchTranslator() throws Exception {
    try {
      ProjectContext context = ProjectContext.builder()
          .withEditors(ImmutableMap.<String, Editor>of())
          .build();
     
      IMocksControl control = EasyMock.createControl();
      RepositoryExpression mockRepoEx = control.createMock(RepositoryExpression.class);
View Full Code Here

    TranslatorPath tPath = new TranslatorPath("foo", "public");
    Translator t = new ForwardTranslator(ImmutableList.<TranslatorStep>of(
        new TranslatorStep("quux", translatorEditor)));
   
    ProjectContext context = ProjectContext.builder()
        .withRepositories(ImmutableMap.of("foo", new Repository("foo", null, cc, null)))
        .withTranslators(ImmutableMap.of(tPath, t))
        .withEditors(ImmutableMap.of("bar", e)).build();

    Codebase firstCb = new Codebase(new File("/first"), "foo",
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.project.ProjectContext

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.