[Pydev-cvs] org.python.pydev/src_navigator/org/python/pydev/navigator PythonModelProvider.java, 1.
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-06-19 15:30:02
|
Update of /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24486/src_navigator/org/python/pydev/navigator Modified Files: PythonModelProvider.java Log Message: Fixes in the package explorer: there was a case where the item was being re-created even if it was already created in the python model. Index: PythonModelProvider.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/PythonModelProvider.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** PythonModelProvider.java 10 May 2008 16:29:24 -0000 1.14 --- PythonModelProvider.java 19 Jun 2008 15:29:46 -0000 1.15 *************** *** 247,250 **** --- 247,258 ---- while(found.size() > 0){ Object f = found.pop(); + if(f instanceof IResource){ + //no need to create it if it's already in the model! + Object child = sourceFolderInWrap.getChild((IResource)f); + if(child != null && child instanceof IWrappedResource){ + wrappedResource = (IWrappedResource) child; + continue; + } + } //creating is enough to add it to the model if(f instanceof IFile){ |