Update of /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/codecoverage
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7013/src/org/python/pydev/debug/codecoverage
Modified Files:
FileNode.java
Log Message:
<li><strong>Pydev debugger</strong>Workaround for python bug when filenames don't have absolute paths correctly generated</li>
<li><strong>Pydev code-completion</strong>Wild import will only show tokens defined in __all__ (if it's available)</li>
<li><strong>Interactive console</strong>: Fixed problem when more attempts to connect were needed</li>
<li><strong>Interactive console</strong>Fixed console integration problem with other plugins because of interfaces not properly implemented</li>
<li><strong>Code Formatter</strong>: Exponentials handled correctly</li>
<li><strong>Launching</strong>: Unit-test and code-coverage may launch multiple folders/files at once</li>
<li><strong>Code coverage</strong>: Number format exception no longer given when trying to show lines not executed in the editor and all lines are executed</li>
Index: FileNode.java
===================================================================
RCS file: /cvsroot/pydev/org.python.pydev.debug/src/org/python/pydev/debug/codecoverage/FileNode.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** FileNode.java 16 Jun 2008 00:55:38 -0000 1.6
--- FileNode.java 17 Aug 2008 00:26:56 -0000 1.7
***************
*** 94,98 ****
/**
! *
*/
public Iterator<Object> notExecutedIterator() {
--- 94,98 ----
/**
! * @return an iterator with the lines that were not executed
*/
public Iterator<Object> notExecutedIterator() {
***************
*** 101,108 ****
String[] toks = notExecuted.replaceAll(" ", "").split(",");
for (int i = 0; i < toks.length; i++) {
! if(toks[i].indexOf("-") == -1){
! l.add(new Integer(toks[i]));
}else{
! String[] begEnd = toks[i].split("-");
for (int j = Integer.parseInt(begEnd[0]) ; j <= Integer.parseInt(begEnd[1]); j++){
l.add(new Integer(j));
--- 101,112 ----
String[] toks = notExecuted.replaceAll(" ", "").split(",");
for (int i = 0; i < toks.length; i++) {
! String tok = toks[i].trim();
! if(tok.length() == 0){
! continue;
! }
! if(tok.indexOf("-") == -1){
! l.add(new Integer(tok));
}else{
! String[] begEnd = tok.split("-");
for (int j = Integer.parseInt(begEnd[0]) ; j <= Integer.parseInt(begEnd[1]); j++){
l.add(new Integer(j));
|