[Pydev-cvs] org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/modules ModulesKey
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2005-10-02 21:07:38
|
Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/modules In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30125/src/org/python/pydev/editor/codecompletion/revisited/modules Modified Files: ModulesKey.java Log Message: Index: ModulesKey.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/editor/codecompletion/revisited/modules/ModulesKey.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ModulesKey.java 15 Jul 2005 11:48:28 -0000 1.2 --- ModulesKey.java 2 Oct 2005 00:43:33 -0000 1.3 *************** *** 10,19 **** /** * @author Fabio Zadrozny */ public class ModulesKey implements Comparable, Serializable{ ! /** ! * ! */ private static final long serialVersionUID = 1L; public String name; --- 10,20 ---- /** + * This class defines the key to use for some module. All its operations are based on its name. + * The file may be null. + * * @author Fabio Zadrozny */ public class ModulesKey implements Comparable, Serializable{ ! private static final long serialVersionUID = 1L; public String name; *************** *** 21,25 **** /** ! * */ public ModulesKey(String name, File f) { --- 22,26 ---- /** ! * Creates the module key. File may be null */ public ModulesKey(String name, File f) { *************** *** 35,46 **** ModulesKey m = (ModulesKey)o; ! int i = name.compareTo(m.name); ! if (i != 0) ! return i; ! ! if(file != null && m.file != null){ ! i = file.compareTo(m.file); ! } ! return i; } return 0; --- 36,40 ---- ModulesKey m = (ModulesKey)o; ! return name.compareTo(m.name); } return 0; |