package bluej.terminal;

import java.io.File;

import bluej.extensions.SourceType;
import bluej.pkgmgr.Package;


| A class that holds information about the location of an exception. | Effectively, this represents one line in a stack-trace. | @author nccb | public class ExceptionSourceLocation {
| The package | private Package pkg;
| The unqualified class name | private String className;
| The line number | private int lineNumber;
| The starting position in the document of the bit to be linked | private int startPos;
| The ending position in the document of the bit to be linked | private int endPos; public ExceptionSourceLocation(int startPos, int endPos, Package pkg, String className, int lineNumber) { this.startPos = startPos; this.endPos = endPos; this.pkg = pkg; this.className = className; this.lineNumber = lineNumber; } public int getStart() { return startPos; } public int getEnd() { return endPos; } public void showInEditor() { String fileName = className.replace('.', '/') + "." + SourceType.Java.toString().toLowerCase(); pkg.exceptionMessage(new File(pkg.getPath(), fileName).getAbsolutePath(), lineNumber); } }
top, use, map, class ExceptionSourceLocation

.   ExceptionSourceLocation
.   getStart
.   getEnd
.   showInEditor




70 neLoCode + 8 LoComm