Revision 44386 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/panels/SelectAttributesPanel.java
SelectAttributesPanel.java | ||
---|---|---|
80 | 80 |
TableModel model = this.tblAttributes.getModel(); |
81 | 81 |
for (int i = 0; i < model.getRowCount(); i++) { |
82 | 82 |
String object = (String) model.getValueAt(i, COLUMN_FIELD_NAME); |
83 |
for (ExportAttributes.ExportAttribute expAttr : expAttrs) { |
|
83 |
for (ExportAttributes.ExportAttribute expAttr : expAttrs) { // assign valuen from table to ExportAttribute
|
|
84 | 84 |
if (object == null ? expAttr.getName() == null : object.equals(expAttr.getName())) { |
85 | 85 |
try { |
86 | 86 |
expAttr.setNewName((String) model.getValueAt(i, COLUMN_FIELD_NEW_NAME)); |
... | ... | |
129 | 129 |
|
130 | 130 |
@Override |
131 | 131 |
public void enterPanel() { |
132 |
this.parameters.getExportAttributes().fixAttributeNames(); |
|
133 | 132 |
this.fillTableWithAttributes(); |
134 | 133 |
} |
135 | 134 |
|
136 | 135 |
@Override |
137 | 136 |
public void previousPanel() { |
138 |
this.parameters.getExportAttributes().fixAttributeNames(); |
|
139 | 137 |
this.fillTableWithAttributes(); |
140 | 138 |
} |
141 | 139 |
|
... | ... | |
194 | 192 |
propertyFields[nAttr][COLUMN_FIELD_NEW_NAME] = exportAttr.getNewName(); |
195 | 193 |
propertyFields[nAttr][COLUMN_FIELD_TYPE] = dataManager.getTypeName(exportAttr.getDataType()); |
196 | 194 |
propertyFields[nAttr][COLUMN_FIELD_SIZE] = exportAttr.getSize(); |
197 |
propertyFields[nAttr][COLUMN_FIELD_EXPORT] = true;
|
|
195 |
propertyFields[nAttr][COLUMN_FIELD_EXPORT] = exportAttr.isExported();
|
|
198 | 196 |
|
199 | 197 |
this.layerAttributeDescriptor.put( |
200 | 198 |
exportAttr.getName(), |
Also available in: Unified diff