Revision 39068 branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableOperations.java
TableOperations.java | ||
---|---|---|
25 | 25 |
import java.text.ParseException; |
26 | 26 |
import java.util.ArrayList; |
27 | 27 |
import java.util.Iterator; |
28 |
import java.util.List; |
|
28 | 29 |
|
29 | 30 |
import javax.swing.JOptionPane; |
30 | 31 |
|
... | ... | |
124 | 125 |
try { |
125 | 126 |
features = |
126 | 127 |
((FeatureSelection) featureStore.getSelection()).fastIterator(); |
128 |
|
|
129 |
// featureStore.beginEditingGroup("Deleting one or more selected rows in table."); |
|
130 |
|
|
131 |
List<Feature> sel = new ArrayList<Feature>(); |
|
127 | 132 |
while (features.hasNext()) { |
128 | 133 |
Feature feature = (Feature) features.next(); |
129 |
featureStore.delete(feature);
|
|
134 |
sel.add(feature);
|
|
130 | 135 |
} |
136 |
|
|
137 |
int n = sel.size(); |
|
138 |
for (int i=0; i<n; i++) { |
|
139 |
featureStore.delete(sel.get(i)); |
|
140 |
} |
|
141 |
sel.clear(); |
|
142 |
// featureStore.endEditingGroup(); |
|
143 |
|
|
131 | 144 |
} finally { |
132 | 145 |
if (features != null) { |
133 | 146 |
features.dispose(); |
Also available in: Unified diff