Revision 39080
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeatureType.java | ||
---|---|---|
135 | 135 |
Iterator iter = this.iterator(); |
136 | 136 |
while (iter.hasNext()) { |
137 | 137 |
EditableFeatureAttributeDescriptor descriptor = (EditableFeatureAttributeDescriptor) iter.next(); |
138 |
if(descriptor.getName().equals(name)){ |
|
138 |
if(descriptor.getName().equalsIgnoreCase(name)){
|
|
139 | 139 |
throw new RuntimeException( |
140 | 140 |
MessageFormat.format("Name descriptor {0} duplicated.",new String[]{name}) |
141 | 141 |
); |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/FeatureManager.java | ||
---|---|---|
358 | 358 |
} |
359 | 359 |
|
360 | 360 |
public void remove() { |
361 |
throw new UnsupportedOperationException(); |
|
362 |
|
|
361 |
addedIter.remove(); |
|
363 | 362 |
} |
364 | 363 |
|
365 | 364 |
} |
branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/featureset/EditedIterator.java | ||
---|---|---|
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
} |
81 |
|
|
82 |
public void remove() { |
|
83 |
if(this.getIterator() == newsFeatures) { |
|
84 |
newsFeatures.remove(); |
|
85 |
} else { |
|
86 |
super.remove(); |
|
87 |
} |
|
88 |
} |
|
81 | 89 |
|
82 | 90 |
public boolean hasNext() { |
83 | 91 |
if (store.isEditing()) { |
Also available in: Unified diff