edu.utep.cs.et.gui
Class WorkingPane.TesterSourceCodeViewer
java.lang.Object
edu.utep.cs.et.gui.AbstractSourceCodeViewer
edu.utep.cs.et.gui.WorkingPane.TesterSourceCodeViewer
- All Implemented Interfaces:
- SourceCodeViewer
- Enclosing class:
- WorkingPane
private class WorkingPane.TesterSourceCodeViewer
- extends AbstractSourceCodeViewer
Class to turn the JML editor into a source code viewer to be used
by the tester to view the source code.
|
Method Summary |
protected File |
locateFile(String file)
Given a file name of Java or JML source code, locates its
source code file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkingPane.TesterSourceCodeViewer
public WorkingPane.TesterSourceCodeViewer(ActionFactory af,
Editor editor)
- Creates a new instance. The given editor is turned into
a source code viewer.
locateFile
protected File locateFile(String file)
- Given a file name of Java or JML source code, locates its
source code file. It's not clear how this can be done
correctly; perhaps, we should use CLASSPATH and the package
information of the class being tested. Currently, we only
searches the directory where the test class file resides.
- Specified by:
locateFile in class AbstractSourceCodeViewer
JET is Copyright (C) 2005-2007 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.