Revision 25065 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/UndoTableExtension.java

View differences:

UndoTableExtension.java
43 43
import org.gvsig.fmap.dal.exception.DataException;
44 44
import org.gvsig.fmap.dal.feature.FeatureStore;
45 45
import org.gvsig.project.document.table.gui.FeatureTableDocumentPanel;
46
import org.gvsig.tools.undo.UndoException;
46 47

  
47 48
import com.iver.andami.PluginServices;
48 49
import com.iver.andami.messages.NotificationManager;
......
84 85
					fs.getFeatureSelection().deselectAll();
85 86
				} catch (DataException e) {
86 87
					NotificationManager.addError(e);
88
				} catch (UndoException e) {
89
					NotificationManager.addError(e);
87 90
				}
88 91

  
89 92
			}
......
104 107
				if (fs==null) {
105 108
					return false;
106 109
				}
107
				try {
108
					return fs.getCommandsRecord().canUndo();
109
				} catch (DataException e) {
110
					// TODO Auto-generated catch block
111
					e.printStackTrace();
112
				}
110
				return fs.canUndo();
113 111
			}
114 112

  
115 113
		//}

Also available in: Unified diff