Ignore:
Timestamp:
Apr 30, 2011, 12:43:16 PM (13 years ago)
Author:
mlg
Message:

Integrates last jiwigo-ws-api modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/comments/CommentsDialog.java

    r9921 r10697  
    1010import java.awt.event.ActionEvent;
    1111import java.awt.event.ActionListener;
    12 import java.io.IOException;
    1312import java.util.List;
    1413
     
    2120
    2221import fr.mael.jiwigo.om.Comment;
    23 import fr.mael.jiwigo.transverse.exception.ProxyAuthenticationException;
    2422import fr.mael.jiwigo.transverse.util.Messages;
    2523import fr.mael.jiwigo.transverse.util.Tools;
     
    135133                            comment.getDate());
    136134                } else {
    137                     panel = new CommentPanel(new Color(77, 204, 51), comment.getContent(), comment.getAuthor(), comment
    138                             .getDate());
     135                    panel = new CommentPanel(new Color(77, 204, 51), comment.getContent(), comment.getAuthor(),
     136                            comment.getDate());
    139137                }
    140138                alternate = !alternate;
     
    144142        } catch (Exception e) {
    145143            LOG.error(Tools.getStackTrace(e));
    146             JOptionPane.showMessageDialog(null, Messages.getMessage("commentListingError"), Messages
    147                     .getMessage("error"), JOptionPane.ERROR_MESSAGE);
     144            JOptionPane.showMessageDialog(null, Messages.getMessage("commentListingError"),
     145                    Messages.getMessage("error"), JOptionPane.ERROR_MESSAGE);
    148146        }
    149147        panelAjouterCommentaire.add(scrollPaneArea);
     
    169167                reussite = SpringUtils.getCommentService().create(text, this.imageId,
    170168                        SpringUtils.getSessionManager().getLogin());
    171             } catch (IOException e) {
    172                 reussite = false;
    173                 LOG.error(Tools.getStackTrace(e));
    174             } catch (ProxyAuthenticationException e) {
    175                 reussite = false;
    176                 LOG.error(Tools.getStackTrace(e));
    177169            } catch (Exception e) {
    178170                reussite = false;
     
    182174                rafraichir();
    183175            } else {
    184                 JOptionPane.showMessageDialog(null, Messages.getMessage("addCommentError"), Messages
    185                         .getMessage("error"), JOptionPane.ERROR_MESSAGE);
     176                JOptionPane.showMessageDialog(null, Messages.getMessage("addCommentError"),
     177                        Messages.getMessage("error"), JOptionPane.ERROR_MESSAGE);
    186178            }
    187179        }
Note: See TracChangeset for help on using the changeset viewer.