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

View differences:

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

  
61 61
	private MapControl mapControl;
62 62
	private MatrixCADTool matrixCADTool;
......
108 108

  
109 109
		try {
110 110
			if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) {
111
				view = (View) PluginServices.getMDIManager().getActiveWindow();
111
				view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
112 112
				mapControl = view.getMapControl();
113 113
				if (CADExtension.getEditionManager().getActiveLayerEdited()==null)
114 114
					return false;

Also available in: Unified diff