Revision 5205

View differences:

trunk/extensions/extCAD/src/com/iver/cit/gvsig/gui/cad/tools/SelectionCADTool.java
66 66
import com.iver.cit.gvsig.fmap.edition.IRowEdited;
67 67
import com.iver.cit.gvsig.fmap.edition.VectorialEditableAdapter;
68 68
import com.iver.cit.gvsig.fmap.layers.FLayer;
69
import com.iver.cit.gvsig.fmap.layers.FLayers;
69 70
import com.iver.cit.gvsig.fmap.layers.FLyrAnnotation;
70 71
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
71 72
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
72 73
import com.iver.cit.gvsig.fmap.tools.Events.PointEvent;
74
import com.iver.cit.gvsig.gui.Table;
73 75
import com.iver.cit.gvsig.gui.View;
74 76
import com.iver.cit.gvsig.gui.Panels.TextFieldEdit;
75 77
import com.iver.cit.gvsig.gui.cad.CADTool;
......
135 137
		// ESTO LO QUITO POR AHORA, PERO PUEDE QUE LO NECESITEMOS VOLVER A PONER.
136 138
		// Lo he quitado porque cuando seleccionas algo con CAD, molesta que
137 139
		// te hagan un redibujado.
138
		/* FLyrVect lv=(FLyrVect)((VectorialLayerEdited)CADExtension.getEditionManager().getActiveLayerEdited()).getLayer();
139
		lv.getSource().getRecordset().getSelectionSupport().fireSelectionEvents(); */
140
		FLyrVect lv=(FLyrVect)((VectorialLayerEdited)CADExtension.getEditionManager().getActiveLayerEdited()).getLayer();
141
		//lv.getSource().getRecordset().getSelectionSupport().fireSelectionEvents();
142
		com.iver.andami.ui.mdiManager.View[] views = (com.iver.andami.ui.mdiManager.View[]) PluginServices.getMDIManager().getAllViews();
143

  
144
		for (int i=0 ; i<views.length ; i++){
145
			if (views[i] instanceof Table){
146
				Table table=(Table)views[i];
147
				if (table.getModel().getAssociatedTable()!=null && table.getModel().getAssociatedTable().equals(lv))
148
					table.updateSelection();
149
			}
150
		}
140 151
	}
141 152

  
142 153
	/*

Also available in: Unified diff