Revision 4368
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/EditableAdapter.java | ||
---|---|---|
110 | 110 |
writer.preProcess(); |
111 | 111 |
|
112 | 112 |
try { |
113 |
for (int i = 0; i < getRowCount(); i++) { |
|
113 |
int rowCount=getRowCount(); |
|
114 |
for (int i = 0; i < rowCount; i++) { |
|
114 | 115 |
IRowEdited rowEdited = getRow(i); |
115 | 116 |
|
116 | 117 |
if (rowEdited != null) { |
... | ... | |
147 | 148 |
Integer integer = new Integer(calculatedIndex); |
148 | 149 |
DefaultRowEdited edRow = null; |
149 | 150 |
//Si no est? en el fichero de expansi?n |
150 |
if (!relations.containsKey(integer)) {
|
|
151 |
if (!relations.containsKey(integer)) { |
|
151 | 152 |
try { |
152 | 153 |
/* edRow = new DefaultRowEdited(new DefaultRow(ods.getRow(calculatedIndex), "" + index), |
153 | 154 |
DefaultRowEdited.STATUS_ORIGINAL, index); */ |
... | ... | |
160 | 161 |
return edRow; |
161 | 162 |
} else { |
162 | 163 |
int num = ((Integer) relations.get(integer)).intValue(); |
163 |
|
|
164 |
|
|
164 | 165 |
// return expansionFile.getRow(num); |
165 |
IRowEdited rowFromExpansion = expansionFile.getRow(num);
|
|
166 |
IRowEdited rowFromExpansion = expansionFile.getRow(num); |
|
166 | 167 |
// ?Habr?a que hacer aqu? setID(index + "")? |
167 | 168 |
edRow = new DefaultRowEdited(rowFromExpansion.getLinkedRow().cloneRow(), rowFromExpansion.getStatus(), index); |
168 |
return edRow;
|
|
169 |
return edRow; |
|
169 | 170 |
} |
170 | 171 |
} |
171 | 172 |
|
... | ... | |
442 | 443 |
// calculatedIndex = getCalculatedIndex(externalIndex); |
443 | 444 |
} catch (DriverException e) { |
444 | 445 |
throw new DriverIOException(e); |
445 |
}
|
|
446 |
} |
|
446 | 447 |
|
447 | 448 |
int pos = expansionFile.addRow(feat); |
448 | 449 |
relations.put(new Integer(calculatedIndex), new Integer(pos)); |
... | ... | |
527 | 528 |
} catch (DriverLoadException e) { |
528 | 529 |
// TODO Auto-generated catch block |
529 | 530 |
e.printStackTrace(); |
530 |
}
|
|
531 |
} |
|
531 | 532 |
return null; */ |
532 | 533 |
return getRecordset().getSelection(); |
533 | 534 |
} |
Also available in: Unified diff