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

View differences:

InsertMultiPointExtension.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.MultiPointCADTool;
48 48
import org.gvsig.fmap.dal.exception.ReadException;
49 49
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
......
55 55
 * @author Vicente Caballero Navarro
56 56
 */
57 57
public class InsertMultiPointExtension extends Extension {
58
   private View view;
58
   private DefaultViewPanel view;
59 59
   private MapControl mapControl;
60 60
   private MultiPointCADTool multipoint;
61 61

  
......
95 95

  
96 96
      	try {
97 97
			if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE){
98
				view = (View) PluginServices.getMDIManager().getActiveWindow();
98
				view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
99 99
		        mapControl = view.getMapControl();
100 100
		        if (CADExtension.getEditionManager().getActiveLayerEdited()==null)
101 101
					return false;

Also available in: Unified diff