* fix for get method name retrieval mistake.
diff --git a/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/debug/core/model/IScriptStackFrame.java b/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/debug/core/model/IScriptStackFrame.java
index 2c58b20..86fb902 100644
--- a/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/debug/core/model/IScriptStackFrame.java
+++ b/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/debug/core/model/IScriptStackFrame.java
@@ -17,8 +17,18 @@
public interface IScriptStackFrame extends IStackFrame {
IScriptStack getStack();
+ /**
+ * Return associated thread.
+ *
+ * @return
+ */
IScriptThread getScriptThread();
+ /**
+ * Return current stack level.
+ *
+ * @return
+ */
int getLevel();
String getSourceLine();
@@ -56,4 +66,18 @@
IScriptVariable findVariable(String varName) throws DebugException;
String getWhere();
+
+ /**
+ * Return method name returned from debugger or null if not available.
+ *
+ * @return name of method or null.
+ */
+ String getMethodName();
+
+ /**
+ * Return method offset returned from debugger.
+ *
+ * @return integer method offset or -1 if not available.
+ */
+ int getMethodOffset();
}
diff --git a/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/internal/debug/core/model/ScriptStackFrame.java b/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/internal/debug/core/model/ScriptStackFrame.java
index 7c85548..5561619 100644
--- a/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/internal/debug/core/model/ScriptStackFrame.java
+++ b/core/plugins/org.eclipse.dltk.debug/src/org/eclipse/dltk/internal/debug/core/model/ScriptStackFrame.java
@@ -301,16 +301,16 @@
return -1;
}
- public int getLineNumber() throws DebugException {
+ public int getLineNumber() {
return level.getLineNumber();
}
- public int getMethodOffset() throws DebugException {
+ public int getMethodOffset() {
return level.getMethodOffset();
}
- public String getMethodName() throws DebugException {
- return getMethodName();
+ public String getMethodName() {
+ return level.getMethodName();
}
public int getBeginLine() {