Revision 3655 branches/gvSIG_WMSv2/extensions/extWMS/src/com/iver/cit/gvsig/gui/dialogs/WMSPropsDialog.java

View differences:

WMSPropsDialog.java
159 159
	            for (int i = 0; i < selectedLayers.length; i++) {
160 160
	                //  Se a?ade a la lista de layers seleccionados
161 161
                    JDnDListModel modelo = (JDnDListModel) toc.getLstSelectedLayers().getModel();
162
                    if (modelo.addElement(selectedLayers[i])) {
162
                    if (modelo.addElement(0, selectedLayers[i])) {
163 163
                        any = true;
164 164
                    }
165 165
                }
......
257 257
		 */
258 258
		public void actionPerformed(ActionEvent e) {
259 259
            if (e.getActionCommand() == "CANCEL")
260
                closeWMSPropertiesDialog();
260
                close();
261 261
            else{
262 262
                ((FLyrWMS) fLayer).setFormat(wmsParamsTabbedPane.getFormat());
263 263
                ((FLyrWMS) fLayer).setLayerQuery(wmsParamsTabbedPane.getLayersQuery());
......
281 281
                        MapControl mapCtrl = vista.getMapControl();
282 282
                        mapCtrl.getMapContext().invalidate();
283 283
                    }
284
                    closeWMSPropertiesDialog();
284
                    close();
285 285
                }
286 286
            }
287 287
		}
......
297 297
		}
298 298
		return m_ViewInfo;
299 299
	}
300
	
301
	public void viewActivated() {
302
	}
303

  
304

  
305
	
306
	public void closeWMSPropertiesDialog() {
300
		
301
	public void close() {
307 302
		PluginServices.getMDIManager().closeView(this);		
308 303
	}
309 304

  

Also available in: Unified diff