Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/SplitGeometryCADToolExtension.java
SplitGeometryCADToolExtension.java | ||
---|---|---|
51 | 51 |
import org.gvsig.andami.PluginServices; |
52 | 52 |
import org.gvsig.andami.messages.NotificationManager; |
53 | 53 |
import org.gvsig.andami.plugins.Extension; |
54 |
import org.gvsig.app.project.documents.view.gui.View;
|
|
54 |
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
|
|
55 | 55 |
import org.gvsig.editing.gui.cad.tools.SplitGeometryCADTool; |
56 | 56 |
import org.gvsig.fmap.dal.exception.DataException; |
57 | 57 |
import org.gvsig.fmap.geom.Geometry; |
... | ... | |
67 | 67 |
*/ |
68 | 68 |
public class SplitGeometryCADToolExtension extends Extension { |
69 | 69 |
|
70 |
private View view;
|
|
70 |
private DefaultViewPanel view;
|
|
71 | 71 |
private MapControl mapControl; |
72 | 72 |
private SplitGeometryCADTool cadTool; |
73 | 73 |
|
... | ... | |
105 | 105 |
try { |
106 | 106 |
if (EditionUtilities.getEditionStatus() == |
107 | 107 |
EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) { |
108 |
this.view = (View) PluginServices.getMDIManager().getActiveWindow();
|
|
108 |
this.view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
|
|
109 | 109 |
mapControl = view.getMapControl(); |
110 | 110 |
if (CADExtension.getEditionManager().getActiveLayerEdited() == null) |
111 | 111 |
return false; |
Also available in: Unified diff