Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/InternalPolygonExtension.java
InternalPolygonExtension.java | ||
---|---|---|
43 | 43 |
import org.gvsig.andami.PluginServices; |
44 | 44 |
import org.gvsig.andami.messages.NotificationManager; |
45 | 45 |
import org.gvsig.andami.plugins.Extension; |
46 |
import org.gvsig.app.project.documents.view.gui.View;
|
|
46 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
|
|
47 | 47 |
import org.gvsig.editing.gui.cad.tools.InternalPolygonCADTool; |
48 | 48 |
import org.gvsig.editing.layers.VectorialLayerEdited; |
49 | 49 |
import org.gvsig.fmap.dal.exception.DataException; |
... | ... | |
59 | 59 |
* @author Vicente Caballero Navarro |
60 | 60 |
*/ |
61 | 61 |
public class InternalPolygonExtension extends Extension { |
62 |
private View view;
|
|
62 |
private DefaultViewPanel view;
|
|
63 | 63 |
|
64 | 64 |
private MapControl mapControl; |
65 | 65 |
private InternalPolygonCADTool internalpolygon; |
... | ... | |
101 | 101 |
|
102 | 102 |
try { |
103 | 103 |
if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) { |
104 |
view = (View) PluginServices.getMDIManager().getActiveWindow();
|
|
104 |
view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
105 | 105 |
mapControl = view.getMapControl(); |
106 | 106 |
EditionManager em=CADExtension.getEditionManager(); |
107 | 107 |
if (em.getActiveLayerEdited()==null) |
Also available in: Unified diff