Skip to content

Commit

Permalink
Tracing support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 20, 2000
1 parent 55b6704 commit 8bce759
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions last/toby/gui/TobyInputArea.java
Expand Up @@ -42,6 +42,7 @@ public class TobyInputArea extends JPanel implements LayoutManager,
private String endl;
private Vector lineIndexes;
private EditorInformationDisplay edInfo = null;
private boolean tracing = false;

public TobyInputArea(TobyFrame frame)
{
Expand All @@ -55,6 +56,12 @@ public TobyInputArea(TobyFrame frame)
} // Constructor


public void setTracing(boolean _tracing)
{
this.tracing = _tracing;
} // setTracing


public void setSource(BufferedReader inReader) throws IOException
/**
* Set the text area to source read from (inReader). This Reader
Expand Down Expand Up @@ -192,10 +199,8 @@ public void endInterpretation(boolean normalTermination)

public void sourceNewLine(int lineNum)
{
// TurtleSpace tspace = ((TobyPanel) getParent()).getTurtleSpace();

// if (tspace.isTraceEnabled())
// highlightLine(lineNum);
if (this.tracing == true)
highlightLine(lineNum);
} // sourceNewLine


Expand Down

0 comments on commit 8bce759

Please sign in to comment.