Revision 11468 trunk/extensions/extCAD/src/com/iver/cit/gvsig/StopEditing.java

View differences:

StopEditing.java
9 9
import com.iver.andami.PluginServices;
10 10
import com.iver.andami.messages.NotificationManager;
11 11
import com.iver.andami.plugins.Extension;
12
import com.iver.cit.gvsig.exceptions.layers.CancelEditingLayerException;
12 13
import com.iver.cit.gvsig.exceptions.layers.LegendLayerException;
13 14
import com.iver.cit.gvsig.exceptions.layers.StartEditionLayerException;
14 15
import com.iver.cit.gvsig.exceptions.layers.StopEditionLayerException;
......
165 166
			NotificationManager.addError(e);
166 167
		} catch (StopWriterVisitorException e) {
167 168
			NotificationManager.addError(e);
169
		} catch (CancelEditingLayerException e) {
170
			NotificationManager.addError(e);
168 171
		}
169 172
		return false;
170 173

  
......
204 207

  
205 208
	}
206 209

  
207
	private void cancelEdition(FLyrVect layer) throws CancelEditingTableException {
210
	private void cancelEdition(FLyrVect layer) throws CancelEditingTableException, CancelEditingLayerException {
208 211
		com.iver.andami.ui.mdiManager.IWindow[] views = PluginServices
209 212
				.getMDIManager().getAllWindows();
213
		VectorialEditableAdapter vea = (VectorialEditableAdapter) layer
214
				.getSource();
215
		vea.cancelEdition(EditionEvent.GRAPHIC);
210 216
		for (int j = 0; j < views.length; j++) {
211 217
			if (views[j] instanceof Table) {
212 218
				Table table = (Table) views[j];

Also available in: Unified diff