Examples of STViz


Examples of org.stringtemplate.v4.gui.STViz

      new Interpreter(groupThatCreatedThisInstance, locale, true);
    interp.exec(wr, this); // render and track events
    List<InterpEvent> events = interp.getEvents();
    EvalTemplateEvent overallTemplateEval =
      (EvalTemplateEvent)events.get(events.size()-1);
    STViz viz = new STViz(errMgr, overallTemplateEval, out.toString(), interp,
                interp.getExecutionTrace(), errors.errors);
    viz.open();
    return viz;
  }
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz

    gen.writeVocabFile();
  }

  protected void writeRecognizer(ST template, CodeGenerator gen) {
    if ( g.tool.launch_ST_inspector ) {
      STViz viz = template.inspect();
      if (g.tool.ST_inspector_wait_for_close) {
        try {
          viz.waitForClose();
        }
        catch (InterruptedException ex) {
          g.tool.errMgr.toolError(ErrorType.INTERNAL_ERROR, ex);
        }
      }
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz

    InstanceScope scope = new InstanceScope(null, this);
    interp.exec(wr, scope); // render and track events
    List<InterpEvent> events = interp.getEvents();
    EvalTemplateEvent overallTemplateEval =
      (EvalTemplateEvent)events.get(events.size()-1);
    STViz viz = new STViz(errMgr, overallTemplateEval, out.toString(), interp,
                interp.getExecutionTrace(), errors.errors);
    viz.open();
    return viz;
  }
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz

    String s = st.render();
    Assert.assertEquals("-ax-*-ay-", s);

    // Calling inspect led to an java.lang.ArrayIndexOutOfBoundsException in
    // 4.0.2
    STViz viz = st.inspect();
    if (interactive) {
      viz.waitForClose();
    }
    else {
      waitUntilAnyWindowIsVisible(4000);
      viz.viewFrame.dispose();
      waitUntilAllWindowsAreClosed();
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz

    String s = st.render();
    Assert.assertEquals("-ax-*", s);

    // When <f(...)> is invoked only once inspect throws no Exception in
    // 4.0.2
    STViz viz = st.inspect();
    if (interactive) {
      viz.waitForClose();
    }
    else {
      waitUntilAnyWindowIsVisible(4000);
      viz.viewFrame.dispose();
      waitUntilAllWindowsAreClosed();
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz

    // in 4.0.2.
    // With the default for x changed to {<t2()>} (i.e. lazy eval) inspect
    // works fine. Also removing the " || other" and keeping the early eval
    // works fine with inspect.

    STViz viz = st.inspect();
    if (interactive) {
      viz.waitForClose();
    }
    else {
      waitUntilAnyWindowIsVisible(4000);
      viz.viewFrame.dispose();
      waitUntilAllWindowsAreClosed();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.