Changeset 40 for gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java
- Timestamp:
- 08/29/11 11:44:48 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/java/gssim/gssimstudio/flex/app/editor/GSSimStudio.java
r39 r40 1555 1555 1556 1556 for (int i = 0; i < numOfFiles; i++) { 1557 //int index = uploadedFiles.indexOf(filesList.get(i));1558 //if(index > -1){1557 int index = uploadedFiles.indexOf(filesList.get(i)); 1558 if(index > -1){ 1559 1559 //String fileName = uploadedFiles.get(i).getName(); 1560 1560 String fileName = filesList.get(i).getName(); 1561 1561 String targetPath = tmpDir + "/" + fileName; 1562 boolean tmp = VineFlexUtilClass.moveFileItemToPortalFileSystem( filesList, i, targetPath);1562 boolean tmp = VineFlexUtilClass.moveFileItemToPortalFileSystem(uploadedFiles, i, targetPath); 1563 1563 if (tmp) { 1564 1564 try { … … 1588 1588 log.debug("allFilesUploaded() " + e.getClass().getName()); 1589 1589 } finally { 1590 1590 if (i < numOfFiles - 1) continue; 1591 final FileLocation tmpLocation = portalFileSystemManager.createDirLocation(tmpDir); 1592 log.debug("!!!!!" + tmpLocation.getUrl()); 1593 FileSet delSet = new FileLocationSet(new ArrayList<FileLocation>() { 1594 { 1595 add(tmpLocation); 1596 } 1597 }); 1598 TaskMonitor delMon = portalFileSystemManager.delete(delSet, TaskOptions.block()); 1599 if (delMon.completed()) { 1600 log.debug("!!!!! tmp dir was deleted"); 1601 } else { 1602 log.debug("!!!!! tmp dir was NOT deleted"); 1603 } 1591 1604 1592 1605 } … … 1594 1607 } 1595 1608 //log.debug("move to portal file system temp result "+tmp); 1596 //}1609 } 1597 1610 } 1598 //transfer more than 1 file with one shot!1599 final FileLocation tmpLocation = portalFileSystemManager.createDirLocation(tmpDir);1600 log.debug("!!!!!" + tmpLocation.getUrl());1601 FileSet delSet = new FileLocationSet(new ArrayList<FileLocation>() {1602 {1603 add(tmpLocation);1604 }1605 });1606 TaskMonitor delMon = portalFileSystemManager.delete(delSet, TaskOptions.block());1607 if (delMon.completed()) {1608 log.debug("!!!!! tmp dir was deleted");1609 } else {1610 log.debug("!!!!! tmp dir was NOT deleted");1611 }1612 1613 1611 } 1614 1612 ///MOJE
Note: See TracChangeset
for help on using the changeset viewer.