Revision 41205
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/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 | ||
---|---|---|
51 | 51 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
52 | 52 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
53 | 53 |
import org.gvsig.i18n.Messages; |
54 |
import org.gvsig.tools.dynobject.exception.DynFieldRequiredValueException; |
|
55 |
import org.gvsig.tools.dynobject.exception.DynObjectValidateException; |
|
54 | 56 |
|
55 | 57 |
public class FilesystemExplorerTableWizardPanel extends |
56 | 58 |
FilesystemExplorerWizardPanel { |
... | ... | |
89 | 91 |
try { |
90 | 92 |
params.validate(); |
91 | 93 |
} catch (ValidateDataParametersException ecx) { |
92 |
LOG.info("Unable to validate params: " + params.getDataStoreName()); |
|
93 |
not_valid.add(params.getDataStoreName()); |
|
94 |
StringBuffer buffer = new StringBuffer(); |
|
95 |
if( ecx.getCause() instanceof DynObjectValidateException ) { |
|
96 |
DynObjectValidateException exceptions = (DynObjectValidateException) ecx.getCause(); |
|
97 |
for( int i=0; i<exceptions.size(); i++ ) { |
|
98 |
if( exceptions.get(i) instanceof DynFieldRequiredValueException ) { |
|
99 |
DynFieldRequiredValueException exx = (DynFieldRequiredValueException) exceptions.get(i); |
|
100 |
if( buffer.length()>0 ) { |
|
101 |
buffer.append(", "); |
|
102 |
} |
|
103 |
buffer.append(exx.getMessage()); |
|
104 |
} |
|
105 |
|
|
106 |
} |
|
107 |
} |
|
108 |
String msg = params.getDataStoreName(); |
|
109 |
if( buffer.length()>0 ) { |
|
110 |
msg = msg + ": "+buffer.toString(); |
|
111 |
} |
|
112 |
LOG.info("Unable to validate params: " + msg); |
|
113 |
not_valid.add(msg); |
|
94 | 114 |
continue; |
95 | 115 |
} |
96 | 116 |
|
Also available in: Unified diff