Revision 46104 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/DefaultDataManager.java

View differences:

DefaultDataManager.java
1358 1358

  
1359 1359
    @Override
1360 1360
    public EditableFeatureAttributeDescriptor createFeatureAttributeDescriptor(String name, int type) {
1361
        return createEditableFeatureAttributeDescriptor(name,type, false);
1361
        return createEditableFeatureAttributeDescriptor(null, name,type, false);
1362 1362
    }
1363 1363
    
1364
    public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(String name, int type) {
1365
        return createEditableFeatureAttributeDescriptor(name,type, false);
1364
    public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(FeatureType ftype, String name, int type) {
1365
        return createEditableFeatureAttributeDescriptor(ftype, name,type, false);
1366 1366
    }
1367 1367
    
1368
    public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(String name, int type, boolean strongChanges) {
1368
    public static DefaultEditableFeatureAttributeDescriptor createEditableFeatureAttributeDescriptor(FeatureType ftype, String name, int type, boolean strongChanges) {
1369 1369
        switch (type) {
1370 1370
            case DataTypes.DOUBLE:
1371 1371
            case DataTypes.FLOAT:
......
1391 1391
            default:
1392 1392
                throw new UnsupportedDataTypeException(name, type);
1393 1393
        }
1394
        DefaultEditableFeatureAttributeDescriptor edi = new DefaultEditableFeatureAttributeDescriptor(null, strongChanges);
1394
        DefaultEditableFeatureAttributeDescriptor edi = new DefaultEditableFeatureAttributeDescriptor(ftype, strongChanges);
1395 1395
        edi.setName(name);
1396 1396
        edi.setDataType(type);
1397 1397
        if (edi.getDataType().supportSize()) {
1398 1398
            edi.setSize(edi.getDataType().getDefaultSize());
1399
        }
1399
        }   
1400 1400
        return edi;
1401 1401
    }
1402 1402

  

Also available in: Unified diff