Revision 775 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/LinkControls.java

View differences:

LinkControls.java
11 11
import com.iver.andami.PluginServices;
12 12
import com.iver.andami.plugins.Extension;
13 13
import com.iver.cit.gvsig.fmap.FMap;
14
import com.iver.cit.gvsig.fmap.NewMapControl;
14 15
import com.iver.cit.gvsig.fmap.layers.FLayer;
15 16
import com.iver.cit.gvsig.gui.View;
17
import com.iver.cit.gvsig.project.castor.ProjectView;
16 18

  
17 19

  
18 20
/**
19
 * DOCUMENT ME!
21
 * Extensi?n para gestionar los hiperlinks.
20 22
 *
21 23
 * @author Vicente Caballero Navarro
22 24
 */
......
30 32
     * @param s DOCUMENT ME!
31 33
     */
32 34
    public void execute(String s) {
33
        View view = (View) PluginServices.getMDIManager().getActiveView();
35
    	 View vista = (View) PluginServices.getMDIManager().getActiveView();
36
         ProjectView model=vista.getModel();
37
         FMap mapa = model.getMapContext();
38
         NewMapControl mapCtrl = vista.getMapControl();
34 39
        logger.debug("Comand : " + s);
35

  
36
        //TODO implementar bien
37
        //view.getMapControl().setTool(MapControl.LINK);
40
        if (s.compareTo("LINK") == 0) {
41
        	mapCtrl.setTool("link");
42
        }
38 43
    }
39 44

  
40 45
    /**

Also available in: Unified diff