Revision 25069 branches/v2_0_0_prep/extensions/extEditing/src/com/iver/cit/gvsig/RedoViewExtension.java
RedoViewExtension.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
import org.gvsig.fmap.dal.exception.DataException; |
44 | 44 |
import org.gvsig.fmap.dal.exception.ReadException; |
45 |
import org.gvsig.fmap.dal.feature.CommandsRecord; |
|
46 | 45 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
47 | 46 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
48 | 47 |
import org.gvsig.fmap.mapcontrol.MapControl; |
48 |
import org.gvsig.tools.undo.RedoException; |
|
49 | 49 |
|
50 | 50 |
import com.iver.andami.PluginServices; |
51 | 51 |
import com.iver.andami.messages.NotificationManager; |
... | ... | |
96 | 96 |
NotificationManager.addError(e.getMessage(),e); |
97 | 97 |
} catch (DataException e) { |
98 | 98 |
NotificationManager.addError(e.getMessage(),e); |
99 |
} catch (RedoException e) { |
|
100 |
NotificationManager.addError(e.getMessage(),e); |
|
99 | 101 |
} |
100 | 102 |
|
101 | 103 |
//vista.getMapControl().drawMap(false); |
... | ... | |
112 | 114 |
for (int i=0;i<layers.getLayersCount();i++){ |
113 | 115 |
try { |
114 | 116 |
if (layers.getLayer(i) instanceof FLyrVect && ((FLyrVect)layers.getLayer(i)).getFeatureStore().isEditing() && layers.getLayer(i).isActive()){ |
115 |
return ((FLyrVect)layers.getLayer(i)).getFeatureStore().getCommandsRecord().getRedoCommands().isEmpty();
|
|
117 |
return ((FLyrVect)layers.getLayer(i)).getFeatureStore().canRedo();
|
|
116 | 118 |
} |
117 | 119 |
} catch (ReadException e) { |
118 | 120 |
// TODO Auto-generated catch block |
Also available in: Unified diff