builder = new SimpleFeatureTypeBuilder();
builder.setName(Messages.FeatureTypeEditor_newFeatureTypeName);
builder.setCRS(getDefaultCRS());
builder.length(MAX_ATTRIBUTE_LENGTH).add(Messages.FeatureTypeEditor_defaultNameAttributeName, String.class);
builder.add(Messages.FeatureTypeEditor_defaultGeometryName, LineString.class);
return builder.buildFeatureType();
}
private CoordinateReferenceSystem getDefaultCRS() {
String crsInfo=UiPlugin.getDefault().getPreferenceStore().getString(PreferenceConstants.P_DEFAULT_GEOMEMTRY_CRS);
if( crsInfo!=null && crsInfo.trim().length()>0 ){