Revision 43256 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/FilesystemExplorerWizardPanelController.java
FilesystemExplorerWizardPanelController.java | ||
---|---|---|
13 | 13 |
import java.util.Locale; |
14 | 14 |
|
15 | 15 |
import javax.swing.DefaultListSelectionModel; |
16 |
import javax.swing.JFileChooser; |
|
16 | 17 |
import javax.swing.ListSelectionModel; |
17 | 18 |
import javax.swing.event.ListSelectionEvent; |
18 | 19 |
import javax.swing.event.ListSelectionListener; |
... | ... | |
25 | 26 |
import org.gvsig.app.ApplicationLocator; |
26 | 27 |
import org.gvsig.app.ApplicationManager; |
27 | 28 |
import org.gvsig.app.prepareAction.PrepareContext; |
29 |
import org.gvsig.filedialogchooser.FileDialogChooser; |
|
28 | 30 |
import org.gvsig.fmap.dal.DataStoreParameters; |
29 | 31 |
import org.gvsig.fmap.dal.exception.DataException; |
30 | 32 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorer; |
... | ... | |
32 | 34 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.swing.FilesystemExplorerWizardPanel.MyFileFilter; |
33 | 35 |
import org.gvsig.fmap.dal.swing.DALSwingLocator; |
34 | 36 |
import org.gvsig.fmap.mapcontext.MapContext; |
35 |
import org.gvsig.gui.beans.swing.JFileChooser; |
|
36 | 37 |
import org.gvsig.tools.ToolsLocator; |
37 | 38 |
import org.gvsig.tools.dynobject.DynObject; |
38 | 39 |
import org.gvsig.tools.i18n.I18nManager; |
40 |
import org.gvsig.tools.util.ToolsUtilLocator; |
|
39 | 41 |
|
40 | 42 |
|
41 | 43 |
/** |
... | ... | |
263 | 265 |
|
264 | 266 |
private List<FilesystemStoreParameters> chooseFilesParameters() { |
265 | 267 |
|
266 |
JFileChooser fileChooser = |
|
267 |
new JFileChooser(OPEN_LAYER_FILE_CHOOSER_ID, |
|
268 |
explorer.getCurrentPath()); |
|
268 |
FileDialogChooser fileChooser = ToolsUtilLocator.getFileDialogChooserManager().create(OPEN_LAYER_FILE_CHOOSER_ID); |
|
269 |
fileChooser.setCurrentDirectory(explorer.getCurrentPath()); |
|
269 | 270 |
fileChooser.setMultiSelectionEnabled(true); |
270 | 271 |
fileChooser.setAcceptAllFileFilterUsed(false); |
271 | 272 |
|
... | ... | |
292 | 293 |
|
293 | 294 |
if (result == JFileChooser.APPROVE_OPTION) { |
294 | 295 |
lastFilter = (MyFileFilter) fileChooser.getFileFilter(); |
295 |
JFileChooser.setLastPath(OPEN_LAYER_FILE_CHOOSER_ID, fileChooser.getCurrentDirectory()); |
|
296 | 296 |
String providerName = null; |
297 | 297 |
if( lastFilter!=null ) { |
298 | 298 |
if( !DEFAULT_FILTER.equalsIgnoreCase(lastFilter.getDescription()) ) { |
Also available in: Unified diff