Revision 1573 branches/pilotoDWG/libraries/libFMap/src/com/iver/cit/gvsig/fmap/edition/DefaultEditableFeatureSource.java

View differences:

DefaultEditableFeatureSource.java
2 2

  
3 3
import com.iver.cit.gvsig.fmap.core.IGeometry;
4 4
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
5
import com.iver.cit.gvsig.fmap.layers.FBitSet;
5 6
import com.iver.cit.gvsig.fmap.layers.SelectionSupport;
6 7

  
7 8
import com.vividsolutions.jts.geom.Envelope;
......
31 32
	private Quadtree index;
32 33
	private Image selectionImage;
33 34
	private CommandRecord cr;
34
	private SelectionSupport selectionSupport = new SelectionSupport();
35
	private FBitSet fbitset;
35 36
	/**
36 37
	 * Crea un nuevo AbstractEditableFeatureSource.
37 38
	 *
......
39 40
	 * @param ofa DOCUMENT ME!
40 41
	 */
41 42
	public DefaultEditableFeatureSource(ExpansionFile ef,
42
		OriginalFeatureAdapter ofa) {
43
		OriginalFeatureAdapter ofa,FBitSet bitset) {
43 44
		expansionFile = ef;
44 45
		this.ofa = ofa;
45 46
		this.cr= new MemoryCommandRecord();
47
		fbitset=bitset;
46 48
	}
47 49

  
48 50
	/**
......
454 456
	 * @see com.iver.cit.gvsig.fmap.edition.EditableFeatureSource#undo()
455 457
	 */
456 458
	public void undo() throws DriverIOException, IOException{
457
		selectionSupport.clearSelection();
459
		fbitset.clear();
458 460
		if (moreUndoCommands())
459 461
		cr.popCommand();
460 462
	}
......
462 464
	 * @see com.iver.cit.gvsig.fmap.edition.EditableFeatureSource#redo()
463 465
	 */
464 466
	public void redo(){
465
		selectionSupport.clearSelection();
467
		fbitset.clear();
466 468
		if (moreRedoCommands())
467 469
		cr.pushCommand();
468 470
	}
......
481 483
	public boolean moreRedoCommands() {
482 484
		return cr.moreRedoCommands();
483 485
	}
484

  
485
	/**
486
	 * @see com.iver.cit.gvsig.fmap.edition.EditableFeatureSource#getSelectionSuport()
487
	 */
488
	public SelectionSupport getSelectionSuport() {
489
		return selectionSupport;
490
	}
486
	
491 487
}

Also available in: Unified diff