Revision 45182 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.prov/org.gvsig.exportto.swing.prov.csv/src/main/java/org/gvsig/export/csv/swing/panels/CSVExportParametersPanel.java
CSVExportParametersPanel.java | ||
---|---|---|
65 | 65 |
this.initComponents(); |
66 | 66 |
} |
67 | 67 |
|
68 |
|
|
69 |
|
|
68 | 70 |
class ComboItem { |
69 | 71 |
|
70 | 72 |
private String key; |
... | ... | |
156 | 158 |
i18nc.translate(this.lblDelimiter); |
157 | 159 |
i18nc.translate(this.lblQuoteCharacter); |
158 | 160 |
i18nc.translate(this.lblCommentStartMarker); |
161 |
i18nc.translate(this.lblIncludeMetadataInHeader); |
|
159 | 162 |
|
160 | 163 |
} |
161 | 164 |
|
... | ... | |
198 | 201 |
public String getParameterCommentStartMarker() { |
199 | 202 |
return this.txtCommentStartMarker.getText(); |
200 | 203 |
} |
204 |
|
|
205 |
public boolean getParameterIncludeMetadataInHeader() { |
|
206 |
return this.chkIncludeMetadataInHeader.isSelected(); |
|
207 |
} |
|
201 | 208 |
|
202 | 209 |
@Override |
203 | 210 |
public JComponent asJComponent() { |
... | ... | |
222 | 229 |
|
223 | 230 |
@Override |
224 | 231 |
public void enterPanel() { |
225 |
FeatureStore csvStore = this.parameters.getSourceFeatureStore(); |
|
226 |
DataStoreParameters sparams = csvStore.getParameters(); |
|
232 |
// FeatureStore csvStore = this.parameters.getSourceFeatureStore();
|
|
233 |
// DataStoreParameters sparams = csvStore.getParameters();
|
|
227 | 234 |
|
228 | 235 |
this.setSelectedStringValue(cmbProfile, this.parameters.getProfile()); |
229 | 236 |
this.setSelectedStringValue(cmbLocale, this.parameters.getLocale()); |
... | ... | |
233 | 240 |
this.txtDelimiter.setText(this.parameters.getDelimiter()); |
234 | 241 |
this.txtQuoteCharacter.setText(this.parameters.getQuoteCharacter()); |
235 | 242 |
this.txtCommentStartMarker.setText(this.parameters.getCommentStartMarker()); |
243 |
this.chkIncludeMetadataInHeader.setSelected(this.parameters.getIncludeMetadataInHeader()); |
|
236 | 244 |
} |
237 | 245 |
|
238 | 246 |
@Override |
... | ... | |
269 | 277 |
if (this.getParameterQuoteCharacter()!=null) { |
270 | 278 |
this.parameters.setQuoteCharacter(this.getParameterQuoteCharacter()); |
271 | 279 |
} |
280 |
this.parameters.setIncludeMetadataInHeader(this.getParameterIncludeMetadataInHeader()); |
|
272 | 281 |
} |
273 | 282 |
} |
Also available in: Unified diff