Author: jflesch
Date: 2006-08-21 12:43:22 +0000 (Mon, 21 Aug 2006)
New Revision: 10223

Modified:
   trunk/apps/Thaw/src/thaw/plugins/index/File.java
   trunk/apps/Thaw/src/thaw/plugins/index/Index.java
Log:
Fix progression display in index list and fix thaw.plugins.index.File

Modified: trunk/apps/Thaw/src/thaw/plugins/index/File.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/File.java    2006-08-21 03:14:05 UTC 
(rev 10222)
+++ trunk/apps/Thaw/src/thaw/plugins/index/File.java    2006-08-21 12:43:22 UTC 
(rev 10223)
@@ -67,7 +67,7 @@

                deduceFilenameFromKey();

-               parent = parent;
+               this.parent = parent;
        }

        public File(Hsqldb db, Element fileElement, Index parent) {

Modified: trunk/apps/Thaw/src/thaw/plugins/index/Index.java
===================================================================
--- trunk/apps/Thaw/src/thaw/plugins/index/Index.java   2006-08-21 03:14:05 UTC 
(rev 10222)
+++ trunk/apps/Thaw/src/thaw/plugins/index/Index.java   2006-08-21 12:43:22 UTC 
(rev 10223)
@@ -362,6 +362,9 @@
        ////// FILE LIST ////////

        public void loadLists(String columnToSort, boolean asc) {
+               if(fileList != null)
+                       return;
+
                fileList = new Vector();

                try {
@@ -416,7 +419,15 @@
        }

        public void unloadLists() {
-               //updateFileList();
+               for(Iterator it = fileList.iterator();
+                   it.hasNext(); ) {
+                       thaw.plugins.index.File file = 
(thaw.plugins.index.File)it.next();
+                       if(file.getTransfer() != null && 
!file.getTransfer().isFinished()) {
+                               Logger.info(this, "Transfer still runinng. No 
unloading");
+                               return;
+                       }
+               }
+
                fileList = null;
        }



Reply via email to