Revision 9532 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/UndoTableExtension.java

View differences:

UndoTableExtension.java
70 70
		Table tabla = (Table) PluginServices.getMDIManager().getActiveWindow();
71 71

  
72 72
		if (s.compareTo("UNDO") == 0) {
73

  
74
						if (tabla.isEditing()){
75
							IEditableSource vea=(IEditableSource)tabla.getModel().getModelo();
76
							try {
77
								vea.undo();
78
							} catch (DriverIOException e) {
79
								NotificationManager.addError("Error accediendo a los Drivers para deshacer un comando",
80
										e);
81
							} catch (IOException e) {
82
								NotificationManager.addError("Error accediendo a los Drivers para deshacer un comando",
83
										e);
84
							}
85
							vea.getSelection().clear();
86
							tabla.refresh();
87
						}
88

  
89

  
90

  
73
			if (tabla.isEditing()){
74
				IEditableSource vea=tabla.getModel().getModelo();
75
				try {
76
					vea.undo();
77
				} catch (DriverIOException e) {
78
					NotificationManager.addError("Error accediendo a los Drivers para deshacer un comando",
79
							e);
80
				} catch (IOException e) {
81
					NotificationManager.addError("Error accediendo a los Drivers para deshacer un comando",
82
							e);
83
				}
84
				vea.getSelection().clear();
85
				tabla.refresh();
86
			}
87
			tabla.getModel().setModified(true);
91 88
		}
92 89
	}
93 90

  

Also available in: Unified diff