Ignore:
Timestamp:
08/29/11 12:25:15 (14 years ago)
Author:
mcichenski
Message:

enable multiple files transfer with one popup window (working)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java

    r42 r43  
    15601560                        String fileName = filesList.get(i).getName(); 
    15611561                        String targetPath = tmpDir + "/" + fileName; 
    1562                         log.error(numOfFiles + " Aha! " + index + " to " + i); 
    15631562                        boolean tmp = VineFlexUtilClass.moveFileItemToPortalFileSystem(uploadedFiles, index, targetPath); 
    15641563                        if (tmp) { 
     
    15891588                                        log.debug("allFilesUploaded() " + e.getClass().getName()); 
    15901589                                } finally { 
    1591                                         if (i < numOfFiles - 1) continue; 
    1592                                         final FileLocation tmpLocation = portalFileSystemManager.createDirLocation(tmpDir); 
    1593                                         log.debug("!!!!!" + tmpLocation.getUrl()); 
    1594                                         FileSet delSet = new FileLocationSet(new ArrayList<FileLocation>() { 
    1595                                                 { 
    1596                                                         add(tmpLocation); 
    1597                                                 } 
    1598                                         }); 
    1599                                         TaskMonitor delMon = portalFileSystemManager.delete(delSet, TaskOptions.block()); 
    1600                                         if (delMon.completed()) { 
    1601                                                 log.debug("!!!!! tmp dir was deleted"); 
    1602                                         } else { 
    1603                                                 log.debug("!!!!! tmp dir was NOT deleted"); 
    1604                                         } 
    1605  
    16061590                                } 
    16071591 
     
    16101594                } 
    16111595            } 
     1596             
     1597            //clean up temporary folder 
     1598            final FileLocation tmpLocation = portalFileSystemManager.createDirLocation(tmpDir); 
     1599                        log.debug("!!!!!" + tmpLocation.getUrl()); 
     1600                        FileSet delSet = new FileLocationSet(new ArrayList<FileLocation>() { 
     1601                                { 
     1602                                        add(tmpLocation); 
     1603                                } 
     1604                        }); 
     1605                        TaskMonitor delMon = portalFileSystemManager.delete(delSet, TaskOptions.block()); 
     1606                        if (delMon.completed()) { 
     1607                                log.debug("!!!!! tmp dir was deleted"); 
     1608                        } else { 
     1609                                log.debug("!!!!! tmp dir was NOT deleted"); 
     1610                        } 
    16121611        } 
    16131612        ///MOJE 
Note: See TracChangeset for help on using the changeset viewer.