Update of /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17414/src_navigator/org/python/pydev/navigator
Modified Files:
PythonModelProvider.java
Log Message:
When the project root is in the pythonpath, the pydev project explorer is not able to gather its children.
bug: https://sourceforge.net/tracker/index.php?func=detail&aid=1960119&group_id=85796&atid=577329
Index: PythonModelProvider.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/PythonModelProvider.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** PythonModelProvider.java 9 May 2008 00:42:32 -0000 1.12
--- PythonModelProvider.java 9 May 2008 01:10:13 -0000 1.13
***************
*** 5,8 ****
--- 5,9 ----
package org.python.pydev.navigator;
+ import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
***************
*** 60,63 ****
--- 61,72 ----
System.out.println("getPipelinedChildren");
}
+
+ if(parent instanceof IWrappedResource){
+ Object[] children = getChildren(parent);
+ currentElements.clear();
+ currentElements.addAll(Arrays.asList(children));
+ return;
+ }
+
PipelinedShapeModification modification = new PipelinedShapeModification(parent, currentElements);
convertToPythonElementsAddOrRemove(modification, true);
|