Revision 6880 trunk/extensions/extCenterViewToPoint/src/com/iver/gvsig/centerviewpoint/CenterViewToPointExtension.java

View differences:

CenterViewToPointExtension.java
74 74
     * @see com.iver.andami.plugins.Extension#execute(java.lang.String)
75 75
     */
76 76
    public void execute(String actionCommand) {
77
		vista = (View)PluginServices.getMDIManager().getActiveView();
77
		vista = (View)PluginServices.getMDIManager().getActiveWindow();
78 78
        MapContext mapContext = vista.getModel().getMapContext();
79 79
        InputCoordinatesPanel dataSelectionPanel = new InputCoordinatesPanel(mapContext);
80 80
        //dataSelectionPanel.setColor(color);
81
		PluginServices.getMDIManager().addView(dataSelectionPanel);
81
		PluginServices.getMDIManager().addWindow(dataSelectionPanel);
82 82
    }
83 83

  
84 84
    public View getView(){
......
89 89
     */
90 90
    public boolean isEnabled() {
91 91
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
92
		 .getActiveView();
92
		 .getActiveWindow();
93 93
		if (f == null) {
94 94
		    return false;
95 95
		}
......
111 111
     */
112 112
    public boolean isVisible() {
113 113
		com.iver.andami.ui.mdiManager.IWindow f = PluginServices.getMDIManager()
114
		 .getActiveView();
114
		 .getActiveWindow();
115 115
		if (f == null) {
116 116
		    return false;
117 117
		}

Also available in: Unified diff