Revision 24429 branches/v2_0_0_prep/extensions/extCAD/src/com/iver/cit/gvsig/EditionChangeManager.java

View differences:

EditionChangeManager.java
1 1
package com.iver.cit.gvsig;
2 2

  
3
import org.gvsig.fmap.data.exceptions.DataException;
3 4
import org.gvsig.fmap.data.exceptions.ReadException;
4 5
import org.gvsig.fmap.data.feature.impl.DefaultFeatureStoreNotification;
5 6
import org.gvsig.fmap.mapcontext.layers.FLayer;
6 7
import org.gvsig.tools.observer.Observable;
7 8
import org.gvsig.tools.observer.Observer;
9
import org.gvsig.tools.observer.WeakReferencingObservable;
8 10

  
9 11
import com.iver.andami.PluginServices;
10 12
import com.iver.andami.messages.NotificationManager;
......
170 172
//		}
171 173
//
172 174
//	}
173
	public void update(Observable observable, Object notification) {
175
	public void update(WeakReferencingObservable observable, Object notification) {
174 176
		DefaultFeatureStoreNotification dfsn=(DefaultFeatureStoreNotification)notification;
175 177
		String type=dfsn.getType();
176 178
		IWindow[] views = PluginServices.getMDIManager().getAllWindows();
......
184 186
						VectorialLayerEdited vle=(VectorialLayerEdited)em.getActiveLayerEdited();
185 187
						try {
186 188
							vle.clearSelection(false);
187
						} catch (ReadException e1) {
189
						} catch (DataException e1) {
188 190
							NotificationManager.addError(e1);
189 191
						}
190 192
					}

Also available in: Unified diff