Revision 6604 trunk/extensions/extCAD/src/com/iver/cit/gvsig/InsertLineExtension.java
InsertLineExtension.java | ||
---|---|---|
44 | 44 |
import com.iver.andami.plugins.Extension; |
45 | 45 |
import com.iver.cit.gvsig.fmap.DriverException; |
46 | 46 |
import com.iver.cit.gvsig.fmap.MapControl; |
47 |
import com.iver.cit.gvsig.fmap.core.FShape; |
|
48 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
|
49 | 47 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
50 | 48 |
import com.iver.cit.gvsig.gui.View; |
51 | 49 |
import com.iver.cit.gvsig.gui.cad.tools.ArcCADTool; |
... | ... | |
92 | 90 |
try { |
93 | 91 |
if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) { |
94 | 92 |
view = (View) PluginServices.getMDIManager().getActiveView(); |
95 |
mapControl = (MapControl) view.getMapControl();
|
|
93 |
mapControl = view.getMapControl(); |
|
96 | 94 |
if (CADExtension.getEditionManager().getActiveLayerEdited()==null) |
97 | 95 |
return false; |
98 | 96 |
FLyrVect lv=(FLyrVect)CADExtension.getEditionManager().getActiveLayerEdited().getLayer(); |
... | ... | |
110 | 108 |
*/ |
111 | 109 |
public boolean isVisible() { |
112 | 110 |
if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) |
113 |
{ |
|
114 | 111 |
return true; |
115 |
} |
|
116 |
else |
|
117 |
return false; |
|
112 |
return false; |
|
118 | 113 |
} |
119 | 114 |
} |
Also available in: Unified diff