--- branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java 2009/10/14 16:44:02 471 +++ branches/1.0-gt2-2.6/src/skrueger/AttributeMetadata.java 2009/10/14 22:48:50 472 @@ -77,10 +77,13 @@ this.setName(name); this.title = title; this.desc = desc; - + // The THE_GEOM and shall never be visible! - if (name.getLocalPart().equalsIgnoreCase("the_geom")) this.visible = false; - + if (name.getLocalPart().equalsIgnoreCase("the_geom")) + this.visible = false; + else + this.visible = visible; + this.unit = unit; } @@ -147,11 +150,12 @@ public void setVisible(final Boolean visible) { this.visible = visible; } -// -// /** @return the index of this attribute in the underlying table/dbf **/ -// public int getColIdx() { -// return colIdx; -// } + + // + // /** @return the index of this attribute in the underlying table/dbf **/ + // public int getColIdx() { + // return colIdx; + // } public Translation getTitle() { return title; @@ -183,14 +187,15 @@ getDesc().copyTo(amd.getDesc()); amd.setUnit(getUnit()); amd.setVisible(isVisible()); - amd.setName(new NameImpl(getName().getNamespaceURI(), getName().getLocalPart())); + amd.setName(new NameImpl(getName().getNamespaceURI(), getName() + .getLocalPart())); return amd; } @Override public AttributeMetadata copy() { - return copyTo( new AttributeMetadata()); + return copyTo(new AttributeMetadata()); } /**