Revision 6885 trunk/examples/exaLoadLayer/src/org/gvsig/example/memory/CreateMemoryLayer.java

View differences:

CreateMemoryLayer.java
6 6
import com.hardcode.gdbms.engine.values.ValueFactory;
7 7
import com.iver.andami.PluginServices;
8 8
import com.iver.andami.plugins.Extension;
9
import com.iver.andami.ui.mdiManager.View;
9
import com.iver.andami.ui.mdiManager.IWindow;
10 10
import com.iver.cit.gvsig.fmap.MapControl;
11 11
import com.iver.cit.gvsig.fmap.core.FPolyline2D;
12 12
import com.iver.cit.gvsig.fmap.core.FShape;
......
29 29
	}
30 30

  
31 31
	public void execute(String actionCommand) {
32
		com.iver.cit.gvsig.gui.View v = (com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveView();
32
		com.iver.cit.gvsig.gui.View v = (com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveWindow();
33 33
		MapControl mapCtrl = v.getMapControl();
34 34
		        
35 35
	    
......
85 85
	}
86 86

  
87 87
	public boolean isVisible() {
88
		View v = PluginServices.getMDIManager().getActiveView();
88
		IWindow v = PluginServices.getMDIManager().getActiveWindow();
89 89

  
90 90
		if  (v instanceof com.iver.cit.gvsig.gui.View)
91 91
			return true;

Also available in: Unified diff