Revision 3849

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/IEditableSource.java
65 65
     * @throws DriverIOException Si se produce un error accediendo a la capa
66 66
     * @throws DriverException
67 67
     */
68
    int getRowCount() throws DriverIOException, IOException, DriverException;
68
    int getRowCount() throws DriverIOException, IOException;
69 69

  
70 70
    /**
71 71
     * A?ade una geometria al fichero de expansi?n y guarda la correspondencia
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/VectorialEditableAdapter.java
45 45
 *
46 46
 * $Id$
47 47
 * $Log$
48
 * Revision 1.10  2006-01-30 08:18:14  caballero
48
 * Revision 1.11  2006-01-31 08:10:05  caballero
49
 * cambio de feature a row
50
 *
51
 * Revision 1.10  2006/01/30 08:18:14  caballero
49 52
 * m?todos para deshacer y rehacer
50 53
 *
51 54
 * Revision 1.9  2006/01/23 17:30:28  caballero
......
413 416
	 * @throws DriverIOException
414 417
	 * @throws IOException
415 418
	 */
416
	public int doAddFeature(IRow feat) throws DriverIOException, IOException {
419
	public int doAddRow(IRow feat) throws DriverIOException, IOException {
417 420
		// A?ade la geometr?a
418 421
		int virtualIndex = ova.getShapeCount() + numAdd;
419 422
		int pos = expansionFile.addRow(feat);
......
519 522
	}
520 523

  
521 524
	public void addRow(IRow row) throws DriverIOException, IOException {
522
		int virtualIndex = doAddFeature(row);
525
		int virtualIndex = doAddRow(row);
523 526

  
524 527
		if (complex) {
525 528
			commands.add(new AddRowCommand(this, row, virtualIndex));
......
566 569
			cr.pushCommand(new RemoveRowCommand(this, index));
567 570
		}
568 571

  
569
		doRemoveFeature(index);
572
		doRemoveRow(index);
570 573

  
571 574
	}
572 575

  
......
576 579
	public void modifyRow(int index, IRow row) throws IOException,
577 580
			DriverIOException {
578 581
		IFeature feat = (IFeature) row;
579
		int pos = doModifyFeature(index, feat);
582
		int pos = doModifyRow(index, feat);
580 583

  
581 584
		if (complex) {
582 585
			commands.add(new ModifyRowCommand(this, index, pos, feat));
......
623 626
	 * @throws IOException
624 627
	 * @throws com.iver.cit.gvsig.fmap.DriverException
625 628
	 */
626
	public void doRemoveFeature(int index)
629
	public void doRemoveRow(int index)
627 630
		throws DriverIOException, IOException {
628 631
		Integer integer = new Integer(index);
629 632

  
......
669 672
	 * @throws DriverIOException
670 673
	 * @throws com.iver.cit.gvsig.fmap.DriverException
671 674
	 */
672
	public int doModifyFeature(int index, IRow feat)
675
	public int doModifyRow(int index, IRow feat)
673 676
		throws IOException, DriverIOException {
674 677
		int pos = -1;
675 678
		Integer integer = new Integer(index);

Also available in: Unified diff