Revision 31496 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/InsertPolygonExtension.java

View differences:

InsertPolygonExtension.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.CircleCADTool;
48 48
import org.gvsig.editing.gui.cad.tools.EditVertexCADTool;
49 49
import org.gvsig.editing.gui.cad.tools.EllipseCADTool;
......
60 60
 * @author Vicente Caballero Navarro
61 61
 */
62 62
public class InsertPolygonExtension extends Extension {
63
	private View view;
63
	private DefaultViewPanel view;
64 64

  
65 65
	private MapControl mapControl;
66 66
	private PolygonCADTool polygon;
......
133 133

  
134 134
		try {
135 135
			if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) {
136
				view = (View) PluginServices.getMDIManager().getActiveWindow();
136
				view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
137 137
				mapControl = view.getMapControl();
138 138
				if (CADExtension.getEditionManager().getActiveLayerEdited()==null)
139 139
					return false;

Also available in: Unified diff