[Pydev-cvs] org.python.pydev.core/src/org/python/pydev/core FullRepIterable.java, 1.17, 1.18
Brought to you by:
fabioz
From: Fabio Z. <fa...@us...> - 2006-09-17 21:29:27
|
Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2127/src/org/python/pydev/core Modified Files: FullRepIterable.java Log Message: Start of support for the new relative imports Index: FullRepIterable.java =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/FullRepIterable.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** FullRepIterable.java 10 Jun 2006 18:42:50 -0000 1.17 --- FullRepIterable.java 17 Sep 2006 21:29:25 -0000 1.18 *************** *** 194,206 **** } public static String joinFirstParts(String[] actToks) { ! StringBuffer buffer = new StringBuffer(); ! for (int i = 0; i < actToks.length-1; i++) { ! if(i > 0){ ! buffer.append('.'); ! } ! buffer.append(actToks[i]); ! } ! return buffer.toString(); } --- 194,211 ---- } + + public static String joinParts(String[] actToks, int parts) { + StringBuffer buffer = new StringBuffer(); + for (int i = 0; i < parts; i++) { + if(i > 0){ + buffer.append('.'); + } + buffer.append(actToks[i]); + } + return buffer.toString(); + } + public static String joinFirstParts(String[] actToks) { ! return joinParts(actToks, actToks.length-1); } |