Revision 6029
trunk/extensions/extCAD/src/com/iver/cit/gvsig/BreakExtension.java | ||
---|---|---|
88 | 88 |
if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) { |
89 | 89 |
view = (View) PluginServices.getMDIManager().getActiveView(); |
90 | 90 |
mapControl = (MapControl) view.getMapControl(); |
91 |
if (CADExtension.getEditionManager().getActiveLayerEdited()==null) |
|
91 |
EditionManager em=CADExtension.getEditionManager(); |
|
92 |
FLyrVect lv=(FLyrVect)em.getActiveLayerEdited().getLayer(); |
|
93 |
|
|
94 |
if (em.getActiveLayerEdited()==null || lv.getRecordset().getSelection().cardinality()!=1) |
|
92 | 95 |
return false; |
93 |
FLyrVect lv=(FLyrVect)CADExtension.getEditionManager().getActiveLayerEdited().getLayer(); |
|
94 | 96 |
if (breakCADTool.isApplicable(lv.getShapeType())){ |
95 | 97 |
return true; |
96 | 98 |
} |
Also available in: Unified diff