Revision 43599 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/legendactions/SaveLegendAction.java

View differences:

SaveLegendAction.java
3 3
import java.awt.event.ActionEvent;
4 4
import java.io.File;
5 5
import java.util.List;
6

  
6 7
import javax.swing.Action;
7 8
import javax.swing.JFileChooser;
8 9
import javax.swing.JOptionPane;
10

  
11
import org.slf4j.Logger;
12
import org.slf4j.LoggerFactory;
13

  
9 14
import org.gvsig.andami.PluginServices;
10 15
import org.gvsig.app.ApplicationLocator;
11 16
import org.gvsig.app.project.documents.view.legend.gui.LegendFileFilter;
......
20 25
public class SaveLegendAction extends AbstractLoadSaveLegendAction {
21 26

  
22 27
    private static final long serialVersionUID = -382469306285635077L;
28
    private static final Logger logger = LoggerFactory.getLogger(SaveLegendAction.class);
23 29

  
24 30
    public SaveLegendAction() {
25 31
       super();
26 32
        this.putValue(Action.NAME, PluginServices.getText(this, "Guardar_leyenda") + "...");
27 33
    }
28
    
34

  
29 35
    @Override
30 36
    public void actionPerformed(ActionEvent e) {
31 37
        if( ! (e.getSource() instanceof LegendsPanel) ) {
......
34 40
        try {
35 41
            saveLegend((LegendsPanel) e.getSource());
36 42
        } catch (Exception exc) {
43
            logger.warn("_Unable_to_save_legend", exc);
37 44
            JOptionPane.showMessageDialog(
38 45
                ApplicationLocator.getManager().getRootComponent(),
39 46
                Messages.getText("_Unable_to_save_legend")

Also available in: Unified diff