Revision 46277 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/FLayers.java
FLayers.java | ||
---|---|---|
134 | 134 |
if (layer instanceof FLyrVect) { |
135 | 135 |
try { |
136 | 136 |
FeatureStore store = ((FLyrVect) layer).getFeatureStore(); |
137 |
if (store.getFeatureSelection().isAvailable()) {
|
|
137 |
if (store.isFeatureSelectionAvailable()) {
|
|
138 | 138 |
return true; |
139 | 139 |
} |
140 | 140 |
} catch (Exception ex) { |
... | ... | |
151 | 151 |
if (layer instanceof FLyrVect) { |
152 | 152 |
try { |
153 | 153 |
FeatureStore store = ((FLyrVect) layer).getFeatureStore(); |
154 |
FeatureSelection selection = store.getFeatureSelection(); |
|
155 |
if (!selection.isAvailable() || selection.isEmpty()) { |
|
154 |
if (!store.isFeatureSelectionAvailable() || store.isFeatureSelectionEmpty()) { |
|
156 | 155 |
return true; |
157 | 156 |
} |
158 | 157 |
return false; |
Also available in: Unified diff