Revision 43358 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/fmap/dal/swing/impl/featuretable/FeatureSelectionModel.java
FeatureSelectionModel.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import java.awt.event.ActionEvent; |
31 | 31 |
import java.awt.event.ActionListener; |
32 |
import java.util.logging.Level; |
|
32 | 33 |
import javax.swing.ListSelectionModel; |
33 | 34 |
import javax.swing.event.EventListenerList; |
34 | 35 |
import javax.swing.event.ListSelectionEvent; |
... | ... | |
436 | 437 |
try { |
437 | 438 |
FeatureSelection selection = getFeatureSelection(); |
438 | 439 |
if (!selection.isEmpty()) { |
440 |
FeatureStore store = getFeatureStore(); |
|
439 | 441 |
FeatureQuery query = this.featureTableModel.getFeatureQuery(); |
440 |
if(query!= null){
|
|
441 |
fs = getFeatureStore().getFeatureSet(query);
|
|
442 |
if(query== null){
|
|
443 |
query = store.createFeatureQuery();
|
|
442 | 444 |
}else{ |
443 |
fs = getFeatureStore().getFeatureSet(); |
|
445 |
try { |
|
446 |
query = (FeatureQuery) query.clone(); |
|
447 |
} catch (CloneNotSupportedException ex) { |
|
448 |
} |
|
444 | 449 |
} |
450 |
query.addEssentialAttributeNames(store); |
|
451 |
fs = store.getFeatureSet(query); |
|
445 | 452 |
diter = fs.fastIterator(); |
446 |
Feature feat = null;
|
|
453 |
Feature feat; |
|
447 | 454 |
while (diter.hasNext()) { |
448 | 455 |
ind++; |
449 | 456 |
feat = (Feature) diter.next(); |
Also available in: Unified diff