[Pydev-cvs] org.python.pydev/src_navigator/org/python/pydev/navigator/elements PythonSourceFolder.
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2008-06-23 19:18:21
|
Update of /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/elements In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21796/src_navigator/org/python/pydev/navigator/elements Modified Files: PythonSourceFolder.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: PythonSourceFolder.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src_navigator/org/python/pydev/navigator/elements/PythonSourceFolder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** PythonSourceFolder.java 19 Jun 2008 15:29:46 -0000 1.4 --- PythonSourceFolder.java 23 Jun 2008 19:18:29 -0000 1.5 *************** *** 104,107 **** --- 104,113 ---- public Object getChild(IResource actualObject){ + if(actualObject == null){ + return null; + } + if(this.getActualObject().equals(actualObject)){ + return this; + } IWrappedResource ret = children.get(actualObject); //System.out.println("Gotten child:"+ret+" for resource:"+actualObject); |