Revision 34661 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/FilesystemExplorerWizardPanel.java
FilesystemExplorerWizardPanel.java | ||
---|---|---|
101 | 101 |
|
102 | 102 |
private static String lastPath = null; |
103 | 103 |
private static MyFileFilter lastFilter = null; |
104 |
private static final String DEFAULT_FILTER = "All supporteds"; |
|
104 | 105 |
|
105 | 106 |
private JList fileList; |
106 | 107 |
private JScrollPane fileListScroll; |
... | ... | |
171 | 172 |
while (iter.hasNext()) { |
172 | 173 |
this.filters.add(new MyFileFilter(iter.next())); |
173 | 174 |
} |
174 |
this.filters.add(new MyFileFilter(explorer.getFilter(mode,"All supporteds")));
|
|
175 |
this.filters.add(new MyFileFilter(explorer.getFilter(mode, DEFAULT_FILTER)));
|
|
175 | 176 |
initUI(); |
176 | 177 |
} |
177 | 178 |
|
... | ... | |
545 | 546 |
public String getDescription() { |
546 | 547 |
return filter.getDescription(); |
547 | 548 |
} |
549 |
|
|
550 |
public String getName() { |
|
551 |
return filter.getDataStoreProviderName(); |
|
552 |
} |
|
548 | 553 |
} |
549 | 554 |
|
550 | 555 |
private List<FilesystemStoreParameters> addFiles() { |
... | ... | |
581 | 586 |
PrepareContext context = this.getPrepareDataStoreContext(); |
582 | 587 |
for (File aFile : fileChooser.getSelectedFiles()) { |
583 | 588 |
try { |
584 |
param = explorer.createStoreParameters(aFile); |
|
589 |
param = explorer.createStoreParameters(aFile, |
|
590 |
lastFilter.getDescription().compareTo(DEFAULT_FILTER) == 0 ? null : lastFilter.getName()); |
|
585 | 591 |
if (param == null) { |
586 | 592 |
// TODO show warning |
587 | 593 |
continue; |
Also available in: Unified diff