JET

edu.utep.cs.jet.gui
Interface SourceCodeViewer


public interface SourceCodeViewer

An interface used by the outputer and the tester to locate and hightlight the source code line corresponding to an error message. The interface is also used to retrieve a paste action that should be enabled when a copy action is performed on the output pange.

Author:
Yoonsik Cheon

Method Summary
 Action getPasteAction()
          Returns a paste action that should be enabled when a copy action is performed on the output pane.
 void highlight(String file, int line)
          Highlights the given line of the given file, if necessary, by first bringing in the file into the source code viewer.
 void highlight(String file, int line, int column)
          Highlights the given line and column of the given file, if necessary, by first bringing in the file into the source code viewer.
 

Method Detail

getPasteAction

Action getPasteAction()
Returns a paste action that should be enabled when a copy action is performed on the output pane.


highlight

void highlight(String file,
               int line,
               int column)
Highlights the given line and column of the given file, if necessary, by first bringing in the file into the source code viewer. The file name is a relative pathname (e.g., T.java and ../T.java) identified from the error messages of external tools such as javac and jmlc.


highlight

void highlight(String file,
               int line)
Highlights the given line of the given file, if necessary, by first bringing in the file into the source code viewer. The file name is a relative pathname (e.g., T.java and ../T.java) identified from the error messages of external tools such as javac and jmlc.


JET

JET is Copyright (C) 2005-2008 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.