提交 69160cbb 编写于 作者: A Alexander Fedorov

#2556 improve stack representation label

上级 71e1b0f2
...@@ -8,6 +8,7 @@ import org.eclipse.debug.core.model.IRegisterGroup; ...@@ -8,6 +8,7 @@ import org.eclipse.debug.core.model.IRegisterGroup;
import org.eclipse.debug.core.model.IStackFrame; import org.eclipse.debug.core.model.IStackFrame;
import org.eclipse.debug.core.model.IThread; import org.eclipse.debug.core.model.IThread;
import org.eclipse.debug.core.model.IVariable; import org.eclipse.debug.core.model.IVariable;
import org.eclipse.osgi.util.NLS;
import org.jkiss.dbeaver.debug.DBGException; import org.jkiss.dbeaver.debug.DBGException;
import org.jkiss.dbeaver.debug.DBGSession; import org.jkiss.dbeaver.debug.DBGSession;
import org.jkiss.dbeaver.debug.DBGStackFrame; import org.jkiss.dbeaver.debug.DBGStackFrame;
...@@ -153,7 +154,9 @@ public class DatabaseStackFrame extends DatabaseDebugElement implements IStackFr ...@@ -153,7 +154,9 @@ public class DatabaseStackFrame extends DatabaseDebugElement implements IStackFr
@Override @Override
public String getName() throws DebugException { public String getName() throws DebugException {
return dbgStackFrame.toString(); String pattern = "{0} line: {1}";
String name = NLS.bind(pattern, dbgStackFrame.getName(), dbgStackFrame.getLine());
return name;
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册