Revision 17170 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java

View differences:

LegendManager.java
62 62
import javax.swing.JCheckBox;
63 63
import javax.swing.JComboBox;
64 64
import javax.swing.JComponent;
65
import javax.swing.JFileChooser;
66 65
import javax.swing.JLabel;
67 66
import javax.swing.JOptionPane;
68 67
import javax.swing.JPanel;
......
80 79
import org.exolab.castor.xml.Marshaller;
81 80
import org.exolab.castor.xml.ValidationException;
82 81
import org.gvsig.gui.beans.swing.JButton;
82
import org.gvsig.gui.beans.swing.JFileChooser;
83 83

  
84 84
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
85 85
import com.iver.andami.PluginServices;
......
109 109
 * @author jaume dominguez faus - jaume.dominguez@iver.es
110 110
 */
111 111
public class LegendManager extends AbstractThemeManagerPage {
112
	private static final String LEGEND_FILECHOOSER_ID = "LEGEND_FILECHOOSER";
112 113
	private static ArrayList legendPool = new ArrayList();
113 114
    private FLayer layer;
114 115
    private ILegend legend; // Le asignaremos la leyenda del primer tema activo.
......
144 145
		public void actionPerformed(java.awt.event.ActionEvent e) {
145 146
			JComponent c = (JComponent) e.getSource();
146 147
			if (c.equals(getBtnSaveLegend())) {
147
				JFileChooser jfc = new JFileChooser(defaultLegendFolderPath);
148
				JFileChooser jfc = new JFileChooser(LEGEND_FILECHOOSER_ID, defaultLegendFolderPath);
148 149
				jfc.addChoosableFileFilter(new GenericFileFilter("sld","*.sld"));
149 150
				jfc.addChoosableFileFilter(new GenericFileFilter("gvl",
150 151
						PluginServices.getText(this, "tipo_de_leyenda")));
......
182 183
					}
183 184
				}
184 185
			} else if (c.equals(getBtnLoadLegend())) {
185
				JFileChooser jfc = new JFileChooser(defaultLegendFolderPath);
186
				JFileChooser jfc = new JFileChooser(LEGEND_FILECHOOSER_ID, defaultLegendFolderPath);
186 187
	    		jfc.addChoosableFileFilter(new GenericFileFilter("gvl",
187 188
	    				PluginServices.getText(this, "tipo_de_leyenda")));
188 189
	    		//jfc.addChoosableFileFilter(new GenericFileFilter("sld","sld"));
......
409 410
        }
410 411
        return titleArea;
411 412
    }
413
    
412 414
    /**
413 415
     * This method initializes jPanel1
414 416
     *

Also available in: Unified diff