[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors AbstractV
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-07-26 16:59:53
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13848/src/org/python/pydev/editor/codecompletion/revisited/visitors Modified Files: AbstractVisitor.java Log Message: some wild import issues Index: AbstractVisitor.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/visitors/AbstractVisitor.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** AbstractVisitor.java 25 Jul 2005 19:56:55 -0000 1.16 --- AbstractVisitor.java 26 Jul 2005 16:59:43 -0000 1.17 *************** *** 87,90 **** --- 87,95 ---- SourceToken sourceToken = null; if(isWildImport(node)){ + //on wild import the module name should be one level less... + int i; + if(moduleName != null && (i = moduleName.indexOf('.')) != -1){ + moduleName = moduleName.substring(0, i); + } sourceToken = new SourceToken(node, node.module, "", "", moduleName); tokens.add(sourceToken); |