Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/model
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17857/src/org/python/pydev/debug/model
Modified Files:
PySourceLocator.java
Log Message:
When clicking on a source file, do not try to open those whose names start
with "<". This fixes an assert when stack frame returns <string> as
the file location
Index: PySourceLocator.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/model/PySourceLocator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PySourceLocator.java 7 May 2004 21:50:59 -0000 1.3
--- PySourceLocator.java 21 Jul 2004 18:06:24 -0000 1.4
***************
*** 28,32 ****
if (element instanceof PyStackFrame) {
IPath path = ((PyStackFrame)element).getPath();
! if (path != null) {
IEditorPart part = PydevPlugin.doOpenEditor(path, false);
if (part != null) {
--- 28,32 ----
if (element instanceof PyStackFrame) {
IPath path = ((PyStackFrame)element).getPath();
! if (path != null && !path.toString().startsWith("<")) {
IEditorPart part = PydevPlugin.doOpenEditor(path, false);
if (part != null) {
|