Ignore:
Timestamp:
Sep 1, 2010, 11:59:17 PM (14 years ago)
Author:
mlg
Message:

Features implementation :
feature:0001829 : the user is now informed that the application is performing an action. It displays what action it is and also a progress bar for time consuming actions like sending images. (calls to jiwigo's webservice are done in threads).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/service/ImageService.java

    r6831 r6833  
    99import fr.mael.jiwigo.transverse.enumeration.PreferencesEnum;
    1010import fr.mael.jiwigo.transverse.util.ImagesUtil;
     11import fr.mael.jiwigo.transverse.util.Messages;
    1112import fr.mael.jiwigo.transverse.util.Outil;
    1213import fr.mael.jiwigo.transverse.util.preferences.PreferencesManagement;
     14import fr.mael.jiwigo.ui.mainframe.MainFrame;
    1315
    1416/**
     
    7577     */
    7678    public boolean creer(String filePath, Integer idCategory) throws Exception {
     79        MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_resizing"));
    7780        //get the byte array of the original file, to keep metadata
    7881        byte[] bytesFichierOriginal = Outil.getBytesFromFile(new File(filePath));
     
    9598            //I use here a try catch because if the original file isn't a jpeg
    9699            //the methode Outil.enrich will fail, but the procedure has to continue
     100            MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_addMetadata"));
    97101            try {
    98102                byte[] fichierEnrichi = Outil.enrich(bytesFichierOriginal, Outil.getBytesFromFile(new File(System
     
    111115        image.setOriginale(originale);
    112116        image.setIdCategory(idCategory);
     117        MainFrame.getInstance().setReussiteMessage(Messages.getMessage("mainFrame_sendingFiles"));
    113118        //now we call the dao to send the image to the webservice
    114119        return ImageDao.getInstance().creer(image);
Note: See TracChangeset for help on using the changeset viewer.