Revision 23142
branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/CreatedFeature.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.data.feature; |
2 | 2 |
|
3 | 3 |
import org.gvsig.fmap.data.DataException; |
4 |
import org.gvsig.fmap.data.InitializeException; |
|
5 | 4 |
import org.gvsig.fmap.data.ReadException; |
6 | 5 |
|
7 | 6 |
/** |
... | ... | |
28 | 27 |
|
29 | 28 |
|
30 | 29 |
protected Feature cloneFeature() throws DataException { |
31 |
// if (this.isNew){
|
|
32 |
// return null;
|
|
33 |
// }
|
|
30 |
if (this.isNew) {
|
|
31 |
return null; |
|
32 |
} |
|
34 | 33 |
return new CreatedFeature(this); |
35 | 34 |
} |
36 | 35 |
|
... | ... | |
44 | 43 |
|
45 | 44 |
protected Feature getNewFeature() { |
46 | 45 |
Feature feature = super.getNewFeature(); |
47 |
if (feature == null) |
|
46 |
if (feature == null) {
|
|
48 | 47 |
return this; |
48 |
} |
|
49 | 49 |
return feature; |
50 | 50 |
} |
51 | 51 |
|
Also available in: Unified diff