Revision 6323 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/EditableAdapter.java
EditableAdapter.java | ||
---|---|---|
157 | 157 |
* @throws DriverException |
158 | 158 |
*/ |
159 | 159 |
private void initalizeFields(SelectableDataSource ds) throws DriverException { |
160 |
boolean bReallyClosed = false; |
|
161 |
while (!bReallyClosed) |
|
162 |
{ |
|
163 |
try { |
|
164 |
ds.stop(); |
|
165 |
} |
|
166 |
catch (RuntimeException e) { |
|
167 |
bReallyClosed = true; |
|
168 |
ds.start(); |
|
169 |
} |
|
170 |
} |
|
171 |
|
|
172 |
|
|
173 | 160 |
FieldDescription[] fields = ds.getFieldsDescription(); |
174 | 161 |
listInternalFields.clear(); |
175 | 162 |
actualFields = new TreeMap(); |
... | ... | |
290 | 277 |
} |
291 | 278 |
} |
292 | 279 |
writer.postProcess(); |
293 |
clean(); |
|
294 |
ods.stop(); |
|
295 |
ods.start(); |
|
296 | 280 |
|
281 |
ods.reload(); |
|
282 |
initalizeFields(ods); |
|
283 |
|
|
297 | 284 |
} catch (DriverIOException e) { |
298 | 285 |
e.printStackTrace(); |
299 | 286 |
throw new EditionException(e); |
... | ... | |
1030 | 1017 |
|
1031 | 1018 |
return ods.getFieldWidth(i); |
1032 | 1019 |
} |
1020 |
|
|
1021 |
public void reload() throws IOException, DriverException { |
|
1022 |
ods.reload(); |
|
1023 |
|
|
1024 |
} |
|
1033 | 1025 |
} |
1034 | 1026 |
|
1035 | 1027 |
public CommandRecord getCommandRecord() { |
Also available in: Unified diff