Revision 5393 branches/MULTITHREADING_DEVELOPMENT/extensions/extWMS/src/com/iver/cit/gvsig/gui/wizards/WMSWizardData.java

View differences:

WMSWizardData.java
84 84
	}
85 85
	
86 86
	
87
	public void setHost(URL host, boolean override) throws DriverException{
87
	public void setHost(URL host, boolean override, WMSOperations wizardListener) throws DriverException{
88 88
		wms = FMapWMSDriverFactory.getDriverForHost(host);
89
		wms.addListener(this);
89
		this.wizardListener = wizardListener;
90
		wms.setWizardDataListener(this);
90 91
		// Send a getCapabilities request;
91 92
		if (!wms.connect(override))
92 93
			throw new DriverException(PluginServices.getText(this, "cant_connect") + host.toString());
......
171 172
			serverVersion = (wms.getVersion() == null) ? "" : wms.getVersion();
172 173
			onlineResources = wms.getOnlineResources();
173 174
			layers = wms.getLayersTree(); // LayersTree as they are defined in the Capabilities document
175
			
174 176
		}	
175
		if (wizardListener!=null)
177
		if (wizardListener!=null) {
176 178
			// Notify WMSWizard that the data is ready.
177 179
			wizardListener.getCapabilities(eventType, message);
180
		}
178 181
		
179 182
	}
180 183
	

Also available in: Unified diff