Revision 46277 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStore.java
DefaultFeatureStore.java | ||
---|---|---|
126 | 126 |
import org.gvsig.fmap.dal.feature.impl.editing.memory.FeatureTypeManager; |
127 | 127 |
import org.gvsig.fmap.dal.feature.impl.editing.memory.SpatialManager; |
128 | 128 |
import org.gvsig.fmap.dal.feature.impl.featurereference.FeatureReferenceFactory; |
129 |
import org.gvsig.fmap.dal.feature.impl.featurereference.FeatureReferenceIteratorToFeatureIterator; |
|
129 | 130 |
import org.gvsig.fmap.dal.feature.impl.featureset.DefaultFeatureSet; |
130 | 131 |
import org.gvsig.fmap.dal.feature.impl.undo.DefaultFeatureCommandsStack; |
131 | 132 |
import org.gvsig.fmap.dal.feature.impl.undo.FeatureCommandsStack; |
... | ... | |
951 | 952 |
return selection; |
952 | 953 |
} |
953 | 954 |
|
955 |
@Override |
|
956 |
public boolean isFeatureSelectionEmpty() { |
|
957 |
if( selection == null ) { |
|
958 |
return true; |
|
959 |
} |
|
960 |
return selection.isEmpty(); |
|
961 |
} |
|
962 |
|
|
954 | 963 |
// |
955 | 964 |
// ==================================================================== |
956 | 965 |
// Gestion de notificaciones |
... | ... | |
3825 | 3834 |
|
3826 | 3835 |
} |
3827 | 3836 |
|
3837 |
public Iterator<Feature> getFeaturesIterator(Iterator<FeatureReference> references) { |
|
3838 |
return new FeatureReferenceIteratorToFeatureIterator(this, references); |
|
3839 |
} |
|
3840 |
|
|
3841 |
public boolean isFeatureSelectionAvailable() { |
|
3842 |
try { |
|
3843 |
FeatureType type = this.getDefaultFeatureType(); |
|
3844 |
return type.supportReferences(); |
|
3845 |
} catch (DataException ex) { |
|
3846 |
return false; |
|
3847 |
} |
|
3848 |
} |
|
3828 | 3849 |
} |
Also available in: Unified diff