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 void
highlight
(JTextComponent comp, int i, int j) protected void
highlight
(JTextComponent comp, int i, int j, boolean scroll) static void
void
open()
protected void
setText
(JEditorPane component, String text) static void
test1()
static void
test2()
static void
test3()
static void
test4()
protected int
toComponentPosition
(JTextComponent component, int position) protected int
toEventPosition
(JTextComponent component, int position) protected void
updateAttributes
(InstanceScope scope, STViewFrame m) private void
protected void
updateStack
(InstanceScope scope, STViewFrame m) void
static 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
-