Revision 22932 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/UndoTableExtension.java
UndoTableExtension.java | ||
---|---|---|
78 | 78 |
|
79 | 79 |
if (s.compareTo("UNDO") == 0) { |
80 | 80 |
if (tabla.isEditing()){ |
81 |
FeatureStore fs=tabla.getModel().getModelo();
|
|
81 |
FeatureStore fs=tabla.getModel().getModel(); |
|
82 | 82 |
fs.undo(); |
83 | 83 |
fs.getSelection().clear(); |
84 | 84 |
} |
... | ... | |
94 | 94 |
//MapControl mapControl = (MapControl) vista.getMapControl(); |
95 | 95 |
//FLayers layers=mapControl.getMapContext().getLayers(); |
96 | 96 |
//for (int i=0;i<layers.getLayersCount();i++){ |
97 |
if (tabla.getModel().getModelo() instanceof FeatureStore && tabla.isEditing()){
|
|
98 |
FeatureStore fs = tabla.getModel().getModelo();
|
|
97 |
if (tabla.getModel().getModel() instanceof FeatureStore && tabla.isEditing()){ |
|
98 |
FeatureStore fs = tabla.getModel().getModel(); |
|
99 | 99 |
if (fs==null)return false; |
100 | 100 |
return fs.getCommandsRecord().moreUndoCommands(); |
101 | 101 |
} |
Also available in: Unified diff