[Pydev-cvs] org.python.pydev.core/src/org/python/pydev/core ModulesKey.java, 1.4, 1.5 IModulesManag
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2007-11-05 00:28:56
|
Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24599/src/org/python/pydev/core Modified Files: ModulesKey.java IModulesManager.java Log Message: Started integration for java project (integration commented at ProjectModulesManager / all tests running). Index: ModulesKey.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/ModulesKey.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ModulesKey.java 16 Sep 2007 13:46:23 -0000 1.4 --- ModulesKey.java 5 Nov 2007 00:28:56 -0000 1.5 *************** *** 84,86 **** --- 84,100 ---- return name; } + + + /** + * @return true if any of the parts in this modules key start with the passed string (considering the internal + * parts lower case). + */ + public boolean hasPartStartingWith(String startingWithLowerCase) { + for (String mod : FullRepIterable.dotSplit(this.name.toLowerCase())) { + if(mod.startsWith(startingWithLowerCase)){ + return true; + } + } + return false; + } } Index: IModulesManager.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/IModulesManager.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** IModulesManager.java 2 Nov 2007 13:26:16 -0000 1.12 --- IModulesManager.java 5 Nov 2007 00:28:56 -0000 1.13 *************** *** 31,35 **** * @return a set with the names of all available modules */ ! public abstract Set<String> getAllModuleNames(boolean addDependencies); public abstract ModulesKey[] getOnlyDirectModules(); --- 31,35 ---- * @return a set with the names of all available modules */ ! public abstract Set<String> getAllModuleNames(boolean addDependencies, String startingWithLowerCase); public abstract ModulesKey[] getOnlyDirectModules(); *************** *** 66,70 **** /** ! * resolve module for all, including the system manager. * * @see org.python.pydev.editor.codecompletion.revisited.ModulesManager#resolveModule(java.lang.String) --- 66,72 ---- /** ! * Resolve module for all, including the system manager. ! * ! * May return null if we're not able to resolve tho module. * * @see org.python.pydev.editor.codecompletion.revisited.ModulesManager#resolveModule(java.lang.String) |