Revision 44386 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.shape/src/main/java/org/gvsig/export/shape/service/ExportShapeParametersImpl.java
ExportShapeParametersImpl.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 | 4 |
import org.apache.commons.io.FilenameUtils; |
5 |
import org.gvsig.export.ExportAttributes; |
|
6 |
import org.gvsig.export.ExportLocator; |
|
7 | 5 |
import org.gvsig.export.dbf.service.ExportDBFService; |
8 | 6 |
import org.gvsig.export.spi.AbstractExportParametersGeometry; |
9 | 7 |
import org.gvsig.export.spi.AttributeNamesTranslator; |
8 |
import org.gvsig.export.spi.CutAttributeNamesTranslator; |
|
10 | 9 |
import org.gvsig.fmap.dal.feature.FeatureType; |
11 | 10 |
|
12 | 11 |
/** |
... | ... | |
21 | 20 |
private File file; |
22 | 21 |
private boolean useSimplifiedExport = true; |
23 | 22 |
|
23 |
public ExportShapeParametersImpl(ExportShapeServiceFactory factory) { |
|
24 |
super(factory); |
|
25 |
AttributeNamesTranslator attr = new CutAttributeNamesTranslator(ExportDBFService.MAX_FIELD_NAME_LENGTH); |
|
26 |
this.exportAttributes.setNamesTranslator(attr); |
|
27 |
} |
|
28 |
|
|
24 | 29 |
@Override |
25 | 30 |
public String getServiceName() { |
26 | 31 |
return ExportShapeServiceFactory.SERVICE_NAME; |
27 | 32 |
} |
28 |
|
|
33 |
|
|
29 | 34 |
@Override |
30 | 35 |
public String getEncoding() { |
31 | 36 |
return this.encoding; |
... | ... | |
58 | 63 |
@Override |
59 | 64 |
public void setSourceFeatureType(FeatureType sourceFeatureType) { |
60 | 65 |
super.setSourceFeatureType(sourceFeatureType); |
61 |
AttributeNamesTranslator attr = ExportLocator.getServiceManager().createAttributeNamesTranslator(ExportDBFService.MAX_FIELD_NAME_LENGTH); |
|
62 |
this.getExportAttributes().setNamesTranslator(attr); |
|
63 | 66 |
|
64 | 67 |
} |
65 | 68 |
|
Also available in: Unified diff