Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/ZoomToSelectExtension.java
ZoomToSelectExtension.java | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
package com.iver.cit.gvsig; |
48 | 48 |
|
49 |
import org.gvsig.fmap.data.ReadException;
|
|
49 |
import org.gvsig.fmap.dal.exception.ReadException;
|
|
50 | 50 |
import org.gvsig.fmap.geom.primitive.Envelope; |
51 | 51 |
import org.gvsig.fmap.mapcontext.MapContext; |
52 | 52 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
... | ... | |
140 | 140 |
FLayer[] selected = view.getModel().getMapContext().getLayers().getActives(); |
141 | 141 |
if (selected.length == 1 && selected[0] instanceof FLyrVect && selected[0].isAvailable()){ |
142 | 142 |
try { |
143 |
if (!((FLyrVect)selected[0]).getFeatureStore().getSelection().isEmpty()) { |
|
143 |
if (!((FLyrVect) selected[0]).getFeatureStore() |
|
144 |
.getFeatureSelection().isEmpty()) { |
|
144 | 145 |
return true; |
145 | 146 |
} |
146 | 147 |
} catch (ReadException e) { |
... | ... | |
153 | 154 |
for (int i=0;i<windows.length;i++) { |
154 | 155 |
if (windows[i] instanceof View) { |
155 | 156 |
if (((View)windows[i]).getMapControl().getMapContext().equals((t.getModel().getAssociatedTable()).getMapContext())){ |
156 |
if (!t.getModel().getModel().getSelection().isEmpty()) { |
|
157 |
if (!t.getModel().getModel().getFeatureSelection() |
|
158 |
.isEmpty()) { |
|
157 | 159 |
return true; |
158 | 160 |
} |
159 | 161 |
} |
Also available in: Unified diff