Revision 39109
branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/ExploitCADTool.java | ||
---|---|---|
56 | 56 |
import org.gvsig.fmap.dal.feature.FeatureType; |
57 | 57 |
import org.gvsig.fmap.geom.Geometry; |
58 | 58 |
import org.gvsig.fmap.geom.aggregate.MultiPrimitive; |
59 |
import org.gvsig.fmap.geom.primitive.Curve; |
|
59 | 60 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
61 |
import org.gvsig.fmap.geom.primitive.Surface; |
|
60 | 62 |
import org.gvsig.fmap.geom.type.GeometryType; |
61 | 63 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
62 | 64 |
import org.gvsig.fmap.mapcontrol.MapControlDrawer; |
... | ... | |
226 | 228 |
exploitGeometryCollection(feature, newSelection); |
227 | 229 |
} else { |
228 | 230 |
|
229 |
if (geom.getType() == CURVE) {
|
|
231 |
if (geom instanceof Curve) {
|
|
230 | 232 |
/* |
231 | 233 |
* Splitting line gives lines, no problem |
232 | 234 |
*/ |
233 | 235 |
exploitLine(feature, newSelection); |
234 | 236 |
} else { |
235 |
if (geom.getType() == SURFACE) {
|
|
237 |
if (geom instanceof Surface) {
|
|
236 | 238 |
|
237 | 239 |
if (decisionHasBeenTaken) { |
238 | 240 |
|
Also available in: Unified diff