Ignore:
Timestamp:
Mar 27, 2011, 1:11:35 PM (13 years ago)
Author:
mlg
Message:

Code cleaning + comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/search/DialogChooseCategory.java

    r9894 r9896  
    165165            List<File> alreadyExistingFiles = new ArrayList<File>();
    166166            List<File> unExceptedFilesError = new ArrayList<File>();
     167            //loop on all files to send.
     168            //if there is a WrongChunkSizeException, the loop stops
     169            //if there is a FileAlreadyExistsException or an Exception
     170            //the file is just added to a list to display the error messages
     171            //at the end of the loop
    167172            for (File file : filesToSend) {
    168173                try {
     
    188193                }
    189194            }
     195            //searches for FileAlreadyExistsException and displays a message dialog
     196            //with the name of the file
    190197            if (alreadyExistingFiles.size() != 0) {
    191198                StringBuffer list = new StringBuffer();
     
    198205            }
    199206
     207            //searches for Exception and displays a message dialog
     208            //with the name of the file
    200209            if (unExceptedFilesError.size() != 0) {
    201210                StringBuffer list = new StringBuffer();
Note: See TracChangeset for help on using the changeset viewer.