Personal tools
gvSIG Desktop
gvSIG Desktop

Cached time 11/21/13 17:09:31 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:

.. code-block:: java

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

The code in 2.0 is:

.. code-block:: java

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

View source document


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: