Revision 39284
branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/fmap/dal/serverexplorer/filesystem/swing/FilesystemExplorerTableWizardPanel.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import java.awt.Window; |
31 | 31 |
import java.util.ArrayList; |
32 |
import java.util.HashSet; |
|
32 | 33 |
import java.util.List; |
34 |
import java.util.Set; |
|
33 | 35 |
|
34 | 36 |
import javax.swing.JOptionPane; |
35 | 37 |
|
... | ... | |
79 | 81 |
List<TableDocument> tabledocs = |
80 | 82 |
new ArrayList<TableDocument>(parameters.length); |
81 | 83 |
|
82 |
String not_valid = ""; |
|
84 |
Set<String> not_valid = new HashSet<String>(); |
|
85 |
|
|
83 | 86 |
for (DataStoreParameters params : parameters) { |
84 | 87 |
store = null; |
85 | 88 |
|
... | ... | |
90 | 93 |
params.validate(); |
91 | 94 |
} catch (ValidateDataParametersException ecx) { |
92 | 95 |
LOG.info("Unable to validate params: " + params.getDataStoreName()); |
93 |
if (not_valid.length() == 0) { |
|
94 |
not_valid = params.getDataStoreName(); |
|
95 |
} else { |
|
96 |
not_valid = not_valid + ", " + params.getDataStoreName(); |
|
97 |
} |
|
98 |
|
|
96 |
not_valid.add(params.getDataStoreName()); |
|
99 | 97 |
continue; |
100 | 98 |
} |
101 | 99 |
|
... | ... | |
124 | 122 |
|
125 | 123 |
} |
126 | 124 |
|
127 |
if (not_valid.length() > 0) { |
|
125 |
if (not_valid.size() > 0) { |
|
126 |
String not_str = not_valid.toString(); |
|
128 | 127 |
JOptionPane.showMessageDialog( |
129 | 128 |
this, |
130 | 129 |
Messages.getText("_These_sources_were_not_loaded") |
131 |
+ ": " + not_valid, |
|
130 |
+ ": " + not_str, // not_valid,
|
|
132 | 131 |
Messages.getText("_Load_error"), |
133 | 132 |
JOptionPane.WARNING_MESSAGE); |
134 | 133 |
} |
Also available in: Unified diff