Package org.stringtemplate.v4.gui
Class STViz
java.lang.Object
org.stringtemplate.v4.gui.STViz
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSTViz(ErrorManager errMgr, EvalTemplateEvent root, String output, Interpreter interp, List<String> trace, List<STMessage> errors) -
Method Summary
Modifier and TypeMethodDescriptionfindEventAtOutputLocation(List<InterpEvent> events, int charIndex) protected final voidhighlight(JTextComponent comp, int i, int j) protected voidhighlight(JTextComponent comp, int i, int j, boolean scroll) static voidvoidopen()protected voidsetText(JEditorPane component, String text) static voidtest1()static voidtest2()static voidtest3()static voidtest4()protected inttoComponentPosition(JTextComponent component, int position) protected inttoEventPosition(JTextComponent component, int position) protected voidupdateAttributes(InstanceScope scope, STViewFrame m) private voidprotected voidupdateStack(InstanceScope scope, STViewFrame m) voidstatic void
-
Field Details
-
WINDOWS_LINE_ENDINGS
- See Also:
-
root
-
currentEvent
-
currentScope
-
allEvents
-
tmodel
-
errMgr
-
interp
-
output
-
trace
-
errors
-
viewFrame
-
updateDepth
-
-
Constructor Details
-
STViz
public STViz(ErrorManager errMgr, EvalTemplateEvent root, String output, Interpreter interp, List<String> trace, List<STMessage> errors)
-
-
Method Details
-
open
public void open() -
waitForClose
- Throws:
InterruptedException
-
updateCurrentST
-
setText
-
toComponentPosition
-
toEventPosition
-
highlight
-
highlight
-
updateAttributes
-
updateStack
-
findEventAtOutputLocation
-
main
- Throws:
IOException
-
test1
- Throws:
IOException
-
test2
- Throws:
IOException
-
test3
- Throws:
IOException
-
test4
- Throws:
IOException
-
writeFile
-