Package com.google.devtools.moe.client.writer

Examples of com.google.devtools.moe.client.writer.WriterCreator


  public Writer createWriter(ProjectContext context) throws WritingError {
    Repository r = context.repositories.get(term.identifier);
    if (r == null) {
      throw new WritingError(String.format("no repository %s", term.identifier));
    }
    WriterCreator wc = r.writerCreator;

    Ui.Task t = AppContext.RUN.ui.pushTask(
        "create_writer",
        String.format("Creating Writer \"%s\"", term));
    try {
      Writer writer = wc.create(term.options);
      AppContext.RUN.ui.popTaskAndPersist(t, writer.getRoot());
      return writer;
    } catch (WritingError e) {
      AppContext.RUN.ui.error(e, "Error creating writer");
      throw e;
View Full Code Here


    RevisionHistory revisionHistory = new DummyRevisionHistory(repositoryName);

    CodebaseCreator codebaseCreator = new DummyCodebaseCreator(repositoryName, projectSpace);

    WriterCreator writerCreator = new DummyWriterCreator(repositoryName);

    return new Repository(repositoryName, revisionHistory, codebaseCreator, writerCreator);
  }
View Full Code Here

TOP

Related Classes of com.google.devtools.moe.client.writer.WriterCreator

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.