Revision 9020 branches/v10/extensions/extWFS2/src/com/iver/cit/gvsig/gui/dialogs/WFSPropsDialog.java

View differences:

WFSPropsDialog.java
27 27
import com.iver.cit.gvsig.fmap.layers.FLyrWFSFactory;
28 28
import com.iver.cit.gvsig.fmap.layers.WFSLayerNode;
29 29
import com.iver.cit.gvsig.fmap.rendering.VectorialLegend;
30
import com.iver.cit.gvsig.gui.layout.Layout;
30 31
import com.iver.cit.gvsig.gui.panels.WFSParamsPanel;
31 32
import com.iver.cit.gvsig.gui.wizards.WFSWizardData;
32 33
import com.iver.cit.gvsig.gui.wizards.WizardListener;
......
77 78
 *
78 79
 * $Id$
79 80
 * $Log$
80
 * Revision 1.4.2.6  2006-11-17 11:28:45  ppiqueras
81
 * Revision 1.4.2.7  2006-11-28 08:04:12  jorpiell
82
 * Se refercan los mapas despu?s de modificar una capa WFS
83
 *
84
 * Revision 1.4.2.6  2006/11/17 11:28:45  ppiqueras
81 85
 * Corregidos bugs y aƱadida nueva funcionalidad.
82 86
 *
83 87
 * Revision 1.13  2006/11/16 16:57:49  jorpiell
......
356 360
						 mapCtrl.getMapContext().invalidate();
357 361
						 applied = true;
358 362
						 getBtnApply().setEnabled(!applied); 
363
						 refreshLayouts();
359 364
					 }
360 365
				 }
361 366
				 if (e.getActionCommand() == "OK") {
......
366 371
								 MapControl mapCtrl = vista.getMapControl();
367 372
								 mapCtrl.getMapContext().getLayers().replaceLayer(layerName, fLayer);
368 373
								 mapCtrl.getMapContext().invalidate();
374
								 refreshLayouts();
369 375
							 }
370 376
						 }
371 377
					 }	
......
399 405
	public void setWFSFilterPanelIsAsTabForWFSLayersLoad(boolean b) {
400 406
		this.wfsParamsTabbedPane.setWFSFilterPanelIsAsTabForWFSLayersLoad(b);
401 407
	}	
408
	
409
	/**
410
	 * Refresh the layouts
411
	 *
412
	 */
413
	private void refreshLayouts(){	
414
		IWindow[] windows = PluginServices.getMDIManager().getAllWindows();
415
		for (int i=0 ; i<windows.length ; i++){
416
			if (windows[i] instanceof Layout){
417
				((Layout)windows[i]).fullRefresh();
418
			}
419
		}
420
	}
402 421
}
403 422

  

Also available in: Unified diff