Revision 46959
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/featureform/swing/impl/DefaultJFeaturesForm.java | ||
---|---|---|
66 | 66 |
import org.gvsig.fmap.dal.feature.Feature; |
67 | 67 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
68 | 68 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
69 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
|
69 | 70 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
70 | 71 |
import org.gvsig.fmap.dal.feature.FeatureStoreNotification; |
71 | 72 |
import org.gvsig.fmap.dal.feature.FeatureType; |
... | ... | |
180 | 181 |
} |
181 | 182 |
|
182 | 183 |
@Override |
184 |
public FeatureSelection getSelecteds() { |
|
185 |
try { |
|
186 |
FeatureSelection selection = getFeatureStore().createFeatureSelection(); |
|
187 |
selection.select(getCurrentFeature()); |
|
188 |
return selection; |
|
189 |
} catch (DataException ex) { |
|
190 |
return null; |
|
191 |
} |
|
192 |
} |
|
193 |
|
|
194 |
@Override |
|
183 | 195 |
public JComponent getActionButton(String actionName) { |
184 | 196 |
if (formset == null) { |
185 | 197 |
return null; |
Also available in: Unified diff