Update of /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29460/src_completions/org/python/pydev/editor/codecompletion/revisited/modules
Modified Files:
CompiledModule.java
Log Message:
Fixed recursion while completing in numpy situation where compiled file needed a later reference to a source.
Index: CompiledModule.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modules/CompiledModule.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** CompiledModule.java 25 Jan 2008 01:53:38 -0000 1.7
--- CompiledModule.java 4 May 2008 16:48:46 -0000 1.8
***************
*** 343,347 ****
}
int foundLine = def.o2[0];
! if(foundLine == 0 && foundAs.length() > 0 && mod != null){
IModule sourceMod = AbstractModule.createModuleFromDoc(mod.getName(), f, new Document(REF.getFileContents(f)), nature, 0);
if(sourceMod instanceof SourceModule){
--- 343,347 ----
}
int foundLine = def.o2[0];
! if(foundLine == 0 && foundAs.length() > 0 && mod != null && state.canStillCheckFindSourceFromCompiled(mod, foundAs)){
IModule sourceMod = AbstractModule.createModuleFromDoc(mod.getName(), f, new Document(REF.getFileContents(f)), nature, 0);
if(sourceMod instanceof SourceModule){
|