Update of /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/docutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24295/src/org/python/pydev/core/docutils
Modified Files:
ImportHandle.java
Log Message:
Organize imports can group from xxx imports.
Index: ImportHandle.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.core/src/org/python/pydev/core/docutils/ImportHandle.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ImportHandle.java 20 May 2008 02:20:23 -0000 1.4
--- ImportHandle.java 1 Jun 2008 20:44:47 -0000 1.5
***************
*** 7,10 ****
--- 7,11 ----
import org.eclipse.jface.text.IDocument;
+ import org.python.pydev.core.Tuple;
/**
***************
*** 233,236 ****
--- 234,248 ----
}
+ /**
+ * @return a list of tuples with the iported string and the comment that's attached to it.
+ */
+ public List<Tuple<String, String>> getImportedStrAndComments() {
+ ArrayList<Tuple<String,String>> lst = new ArrayList<Tuple<String,String>>();
+ for(int i=0;i<this.importedStr.size();i++){
+ lst.add(new Tuple<String, String>(this.importedStr.get(i), this.importedStrComments.get(i)));
+ }
+ return lst;
+ }
+
}
|