Personal tools
gvSIG Desktop
gvSIG Desktop

Cached time 11/22/13 08:38:11 Clear cache and reload

 

I have a variable of type View and would like to access the getModel method. Where I can find it in 2.0?

The code in 1.x was something like:

IWindow window;
MapContext mapa = ((View) window).getModel().getMapContext()

The code in 2.0 is:

IWindow window;
MapContext mapa = ((IView) window).getViewDocument().getMapContext();

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: