Revision 28367 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/EditableAdapter.java
EditableAdapter.java | ||
---|---|---|
633 | 633 |
* @throws IOException |
634 | 634 |
* @throws DriverIOException |
635 | 635 |
*/ |
636 |
public void undoModifyRow(int geometryIndex,
|
|
636 |
public int undoModifyRow(int geometryIndex,
|
|
637 | 637 |
int previousExpansionFileIndex, int sourceType) throws EditionCommandException { |
638 | 638 |
|
639 | 639 |
if (previousExpansionFileIndex == -1) { |
... | ... | |
653 | 653 |
throw new EditionCommandException(writer.getName(),e); |
654 | 654 |
} |
655 | 655 |
if (cancel) |
656 |
return; |
|
656 |
return -1;
|
|
657 | 657 |
// Se elimina de las relaciones y del fichero de expansi?n |
658 | 658 |
relations.remove(new Integer(geometryIndex)); |
659 | 659 |
expansionFile.deleteLastRow(); |
... | ... | |
669 | 669 |
throw new EditionCommandException(writer.getName(),e); |
670 | 670 |
} |
671 | 671 |
if (cancel) |
672 |
return; |
|
672 |
return -1; |
|
673 |
int numAnt=((Integer)relations.get(new Integer(geometryIndex))).intValue(); |
|
673 | 674 |
// Se actualiza la relaci?n de ?ndices |
674 | 675 |
relations.put(new Integer(geometryIndex), new Integer( |
675 | 676 |
previousExpansionFileIndex)); |
677 |
return numAnt; |
|
676 | 678 |
} |
677 | 679 |
//fireAfterModifyRow(geometryIndex, sourceType); |
680 |
return -1; |
|
678 | 681 |
} |
679 | 682 |
|
680 | 683 |
/** |
Also available in: Unified diff