Revision 1979 org.gvsig.raster.wms/trunk/org.gvsig.raster.wms/org.gvsig.raster.wms.app.wmsclient/src/main/java/org/gvsig/raster/wms/app/wmsclient/gui/wizard/WMSWizard.java
WMSWizard.java | ||
---|---|---|
261 | 261 |
} |
262 | 262 |
|
263 | 263 |
public void run() { |
264 |
if(!checkHostAndNetwork()) |
|
265 |
return; |
|
266 |
|
|
264 | 267 |
try { |
265 | 268 |
explorer.connect(cancel, getWMSParamsPanel().isUpdatingCache()); |
266 | 269 |
} catch (RemoteServiceException e) { |
... | ... | |
315 | 318 |
return null; |
316 | 319 |
} |
317 | 320 |
} |
321 |
|
|
322 |
/** |
|
323 |
* Checks if the network and host are reachable |
|
324 |
* @return true if both are reachable and false if they are not |
|
325 |
*/ |
|
326 |
private boolean checkHostAndNetwork() { |
|
327 |
if(!explorer.isHostReachable()) { |
|
328 |
JOptionPane.showMessageDialog(null, Messages.getText("host_unreachable"), Messages.getText("Error"), JOptionPane.ERROR_MESSAGE); |
|
329 |
return false; |
|
330 |
} |
|
331 |
return true; |
|
332 |
} |
|
318 | 333 |
|
319 | 334 |
/** |
320 | 335 |
* DOCUMENT ME! |
Also available in: Unified diff