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

View differences:

AutoCompletePolygonExtension.java
3 3
import org.gvsig.andami.PluginServices;
4 4
import org.gvsig.andami.messages.NotificationManager;
5 5
import org.gvsig.andami.plugins.Extension;
6
import org.gvsig.app.project.documents.view.gui.View;
6
import org.gvsig.app.project.documents.view.gui.DefaultViewPanel;
7 7
import org.gvsig.editing.gui.cad.tools.AutoCompletePolygon;
8 8
import org.gvsig.fmap.dal.exception.ReadException;
9 9
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
......
11 11

  
12 12

  
13 13
public class AutoCompletePolygonExtension extends Extension {
14
	private View view;
14
	private DefaultViewPanel view;
15 15

  
16 16
	private MapControl mapControl;
17 17

  
......
42 42
	public boolean isEnabled() {
43 43
		try {
44 44
			if (EditionUtilities.getEditionStatus() == EditionUtilities.EDITION_STATUS_ONE_VECTORIAL_LAYER_ACTIVE_AND_EDITABLE) {
45
				view = (View) PluginServices.getMDIManager().getActiveWindow();
45
				view = (DefaultViewPanel) PluginServices.getMDIManager().getActiveWindow();
46 46
				mapControl = view.getMapControl();
47 47
				if (CADExtension.getEditionManager().getActiveLayerEdited() == null)
48 48
					return false;

Also available in: Unified diff