Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/RedoTableExtension.java
RedoTableExtension.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package com.iver.cit.gvsig; |
42 | 42 |
|
43 |
import org.gvsig.fmap.data.feature.FeatureStore; |
|
43 |
import org.gvsig.fmap.dal.exception.DataException; |
|
44 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
44 | 45 |
|
45 | 46 |
import com.iver.andami.PluginServices; |
46 | 47 |
import com.iver.andami.messages.NotificationManager; |
... | ... | |
79 | 80 |
if (s.compareTo("REDO") == 0) { |
80 | 81 |
if (tabla.isEditing()){ |
81 | 82 |
FeatureStore fs=tabla.getModel().getModel(); |
82 |
fs.redo(); |
|
83 |
fs.getSelection().clear(); |
|
83 |
try { |
|
84 |
fs.redo(); |
|
85 |
fs.getFeatureSelection().deselectAll(); |
|
86 |
} catch (DataException e) { |
|
87 |
NotificationManager.addError(e); |
|
88 |
} |
|
84 | 89 |
//tabla.refresh(); |
85 | 90 |
} |
86 | 91 |
tabla.getModel().setModified(true); |
... | ... | |
97 | 102 |
//for (int i=0;i<layers.getLayersCount();i++){ |
98 | 103 |
if (tabla.getModel().getModel() instanceof FeatureStore && tabla.isEditing()){ |
99 | 104 |
FeatureStore fs=tabla.getModel().getModel(); |
100 |
if (fs==null)return false; |
|
105 |
if (fs==null) { |
|
106 |
return false; |
|
107 |
} |
|
101 | 108 |
return fs.getCommandsRecord().moreRedoCommands(); |
102 | 109 |
} |
103 | 110 |
|
Also available in: Unified diff