Revision 6928

View differences:

trunk/extensions/extAddIDEELayers/src/com/iver/gvsig/addIDEElayers/AddIDEELayersExtension.java
44 44

  
45 45
import com.iver.andami.PluginServices;
46 46
import com.iver.andami.plugins.Extension;
47
import com.iver.andami.ui.mdiManager.IWindow;
47 48
import com.iver.cit.gvsig.fmap.MapControl;
48 49
import com.iver.cit.gvsig.fmap.layers.FLyrWMS;
49 50
import com.iver.cit.gvsig.gui.View;
......
70 71
     * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
71 72
     */
72 73
    public void execute(String actionCommand) {
73
		View theView = (View) PluginServices.getMDIManager().getActiveView();
74
		View theView = (View) PluginServices.getMDIManager().getActiveWindow();
74 75
		
75 76
		this.addIDEELayers(theView.getMapControl());
76 77
		return;
......
133 134
     * @see com.iver.andami.plugins.Extension#isVisible()
134 135
     */
135 136
    public boolean isVisible() {
136
		com.iver.andami.ui.mdiManager.View view = PluginServices.getMDIManager().getActiveView();
137
		IWindow window = PluginServices.getMDIManager().getActiveWindow();
137 138

  
138
		if (view == null) {
139
		if (window == null) {
139 140
			return false;
140 141
		}
141 142
		
142
		return (view instanceof View);
143
		return (window instanceof View);
143 144
    }
144 145

  
145 146
}

Also available in: Unified diff