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