Revision 6877 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/ThemeToAnnotationExtension.java

View differences:

ThemeToAnnotationExtension.java
48 48
import com.hardcode.gdbms.engine.data.driver.DriverException;
49 49
import com.iver.andami.PluginServices;
50 50
import com.iver.andami.plugins.Extension;
51
import com.iver.andami.ui.mdiManager.View;
51
import com.iver.andami.ui.mdiManager.IWindow;
52 52
import com.iver.cit.gvsig.fmap.FMap;
53 53
import com.iver.cit.gvsig.fmap.core.FShape;
54 54
import com.iver.cit.gvsig.fmap.drivers.DriverIOException;
......
210 210
     * @see com.iver.andami.plugins.IExtension#isEnabled()
211 211
     */
212 212
    public boolean isEnabled() {
213
    	View v = PluginServices.getMDIManager().getActiveView();
213
    	IWindow v = PluginServices.getMDIManager().getActiveView();
214 214

  
215 215
        if (v != null && v instanceof com.iver.cit.gvsig.gui.View) {
216 216
        	com.iver.cit.gvsig.gui.View vista=(com.iver.cit.gvsig.gui.View)v;
......
242 242
     * @see com.iver.andami.plugins.IExtension#isVisible()
243 243
     */
244 244
    public boolean isVisible() {
245
        View v = PluginServices.getMDIManager().getActiveView();
245
        IWindow v = PluginServices.getMDIManager().getActiveView();
246 246

  
247 247
        if (v == null) {
248 248
            return false;

Also available in: Unified diff