[Schmitzm-commits] r1043 - trunk/src/skrueger/geotools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Sep 22 13:19:06 CEST 2010
Author: alfonx
Date: 2010-09-22 13:19:06 +0200 (Wed, 22 Sep 2010)
New Revision: 1043
Modified:
trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
Log:
Use a LinkedHashSet for the attributeNames so that no double column are possible
Modified: trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java
===================================================================
--- trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java 2010-09-22 11:17:48 UTC (rev 1042)
+++ trunk/src/skrueger/geotools/StyledFeatureCollectionTableModel.java 2010-09-22 11:19:06 UTC (rev 1043)
@@ -30,6 +30,7 @@
package skrueger.geotools;
import java.util.HashMap;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Vector;
@@ -135,7 +136,7 @@
final SimpleFeatureType schema = fs.getSchema();
Query query = new DefaultQuery(schema.getTypeName(), filter);
if (amdm != null) {
- Vector<String> visibleAttrNames = new Vector<String>();
+ LinkedHashSet<String> visibleAttrNames = new LinkedHashSet<String>();
// Add the column with the geometry (usually "the_geom") always
visibleAttrNames.add(schema.getGeometryDescriptor()
More information about the Schmitzm-commits
mailing list