Revision 24346 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/impl/commands/AbstractCommandsRecord.java
AbstractCommandsRecord.java | ||
---|---|---|
4 | 4 |
import java.util.List; |
5 | 5 |
import java.util.Stack; |
6 | 6 |
|
7 |
import org.gvsig.fmap.data.feature.Command; |
|
8 |
import org.gvsig.fmap.data.feature.CommandNotification; |
|
9 |
import org.gvsig.fmap.data.feature.CommandsRecord; |
|
10 |
import org.gvsig.fmap.data.feature.FeatureReference; |
|
11 |
import org.gvsig.fmap.data.feature.FeatureReferenceSelection; |
|
7 |
import org.gvsig.fmap.data.exceptions.DataException; |
|
8 |
import org.gvsig.fmap.data.feature.*; |
|
9 |
import org.gvsig.fmap.data.feature.impl.DefaultFeatureStore; |
|
12 | 10 |
import org.gvsig.fmap.data.feature.impl.commands.implementation.FeatureCommand; |
13 | 11 |
import org.gvsig.tools.observer.Observer; |
14 | 12 |
import org.gvsig.tools.observer.impl.DelegateWeakReferencingObservable; |
... | ... | |
48 | 46 |
} |
49 | 47 |
} |
50 | 48 |
|
51 |
public void undo() { |
|
49 |
public void undo() throws DataException {
|
|
52 | 50 |
AbstractCommand command = (AbstractCommand) undos.pop(); |
53 | 51 |
command.undo(); |
54 | 52 |
redos.add(command); |
... | ... | |
56 | 54 |
CommandNotification.UNDO)); |
57 | 55 |
} |
58 | 56 |
|
59 |
public void redo() { |
|
57 |
public void redo() throws DataException {
|
|
60 | 58 |
AbstractCommand command = (AbstractCommand) redos.pop(); |
61 | 59 |
command.redo(); |
62 | 60 |
undos.add(command); |
... | ... | |
100 | 98 |
return undosCount; |
101 | 99 |
} |
102 | 100 |
|
103 |
public void setPointer(int newpos){ |
|
101 |
public void setPointer(int newpos) throws DataException {
|
|
104 | 102 |
int pos=getPointer(); |
105 | 103 |
if (newpos>pos){ |
106 | 104 |
for (int i=pos;i<newpos;i++){ |
... | ... | |
230 | 228 |
FeatureReference reference); |
231 | 229 |
|
232 | 230 |
public abstract void selectAll( |
233 |
FeatureReferenceSelection selection); |
|
231 |
FeatureReferenceSelection selection) |
|
232 |
throws DataException; |
|
234 | 233 |
|
235 | 234 |
public abstract void deselectAll( |
236 |
FeatureReferenceSelection selection); |
|
235 |
FeatureReferenceSelection selection) |
|
236 |
throws DataException; |
|
237 | 237 |
|
238 | 238 |
public abstract void selectionReverse( |
239 | 239 |
FeatureReferenceSelection selection); |
240 | 240 |
|
241 |
public abstract void selectionSet( |
|
241 |
public abstract void selectionSet(DefaultFeatureStore store,
|
|
242 | 242 |
FeatureReferenceSelection oldSelection, |
243 | 243 |
FeatureReferenceSelection newSelection); |
244 | 244 |
} |
Also available in: Unified diff