Revision 24961 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/FeatureStore.java

View differences:

FeatureStore.java
12 12
import org.gvsig.fmap.geom.Geometry;
13 13
import org.gvsig.fmap.geom.primitive.Envelope;
14 14
import org.gvsig.tools.observer.Observer;
15
import org.gvsig.tools.undo.command.UndoRedoCommandStack;
15
import org.gvsig.tools.undo.UndoRedoStack;
16 16

  
17 17
/**
18 18
 * <p>
......
36 36
 * </ul>
37 37
 *
38 38
 */
39
public interface FeatureStore extends DataStore {
39
public interface FeatureStore extends DataStore, UndoRedoStack {
40 40

  
41 41
	/** Indicates that this store is in query mode */
42 42
	final static int MODE_QUERY = 0;
......
302 302
	public void insert(EditableFeature feature) throws DataException;
303 303

  
304 304
	/**
305
	 * Undoes the last command executed on the store
306
	 * 
307
	 * @throws DataException
308
	 */
309
	public void undo() throws DataException;
310

  
311
	/**
312
	 * Re-does the last undone command.
313
	 * 
314
	 * @throws DataException
315
	 */
316
	public void redo() throws DataException;
317

  
318
	/**
319
	 * Returns the store command record.
320
	 * 
321
	 * @return
322
	 * 		store's {@link CommandsRecord}
323
	 * 
324
	 * @throws DataException
325
	 */
326
	public UndoRedoCommandStack getCommandsRecord() throws DataException;
327

  
328
	/**
329 305
	 * Creates a new feature using the default feature type and 
330 306
	 * returns it as an {@link EditableFeature}
331 307
	 * 

Also available in: Unified diff