*/
public class XDebugStackFrame extends XDebugElement implements IStackFrame {
private XDebugThread fThread;
-
private URL fName;
private int fLineNumber;
private int fLevel;
private String fType;
private String fWhere;
-
private IVariable[] fVariables;
-
private int fStepCount = 0;
/**
* @param data frame data
* @param id stack frame id (0 is the bottom of the stack)
*/
- public XDebugStackFrame(XDebugThread thread, int level, String type, int lineNumber, String where, /*URL*/String filename) {
+ public XDebugStackFrame(XDebugThread thread, int id, String type, int lineNumber, String where, /*URL*/String filename) {
super(thread == null ? null : (XDebugTarget) thread.getDebugTarget());
- fLevel = level;
+ fLevel = id;
fThread = thread;
fType = type;
fLineNumber = lineNumber;
- fWhere = where;
+ fWhere = where;
+
try {
fName = new URL(filename);
} catch (MalformedURLException e) {
if (obj instanceof XDebugStackFrame) {
XDebugStackFrame sf = (XDebugStackFrame)obj;
try {
- return sf.getSourceName().equals(fName) &&
+ return sf.getSourceName().equals(new Path(fName.getFile()).lastSegment()) &&
sf.getLineNumber() == fLineNumber &&
sf.getLevel() == fLevel &&
sf.getType().equals(fType) &&
public URL getFullName() {
return fName;
}
-
+
public int getLevel() {
return fLevel;
}