Update of /cvsroot/pydev/org.python.pydev/src/org/python/pydev/outline
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28475/src/org/python/pydev/outline
Modified Files:
ParsedItem.java
Log Message:
Created structure to help dealing with imports in files, even if the file does not have a correct AST
Refactor: Moved methods from FullRepIterable to StringUtils
Index: ParsedItem.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev/src/org/python/pydev/outline/ParsedItem.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** ParsedItem.java 4 Feb 2008 23:39:05 -0000 1.22
--- ParsedItem.java 18 May 2008 20:02:17 -0000 1.23
***************
*** 10,14 ****
import org.eclipse.swt.graphics.Image;
- import org.python.pydev.core.FullRepIterable;
import org.python.pydev.core.bundle.ImageCache;
import org.python.pydev.core.docutils.StringUtils;
--- 10,13 ----
***************
*** 331,336 ****
commentType type = (commentType) astThis.node;
String rep = type.id.trim();
! rep = FullRepIterable.split(rep, '\n')[0];
! rep = FullRepIterable.split(rep, '\r')[0];
rep = rep.substring(1);
rep = StringUtils.rightTrim(rep, '-');
--- 330,335 ----
commentType type = (commentType) astThis.node;
String rep = type.id.trim();
! rep = StringUtils.split(rep, '\n')[0];
! rep = StringUtils.split(rep, '\r')[0];
rep = rep.substring(1);
rep = StringUtils.rightTrim(rep, '-');
|