Changeset 20412 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
- Timestamp:
- 2010-03-11T00:58:51+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java
r19267 r20412 65 65 final int cRetriesGetCookie = 10; // 10 times every 3 seconds means 30 seconds trying to get a cookie 66 66 67 public boolean retrieveInterface(WMSLayer wmsLayer) throws DuplicateLayerException { 67 public boolean retrieveInterface(WMSLayer wmsLayer) throws DuplicateLayerException, WMSException { 68 68 if (wmsLayer.getName().equals("")) 69 69 return false; … … 75 75 if (cookie == null || isCookieExpired()) 76 76 getCookie(); 77 if (cookie != null && interfaceRef == null) { 77 if (cookie == null) 78 throw new WMSException(tr("Cannot open a new client session.\nServer in maintenance or temporary overloaded.")); 79 if (interfaceRef == null) { 78 80 getInterface(wmsLayer); 79 81 this.lastWMSLayerName = wmsLayer.getName(); 80 } else {81 JOptionPane.showMessageDialog(Main.parent,82 tr("Cannot open a new client session.\nServer in maintenance or temporary overloaded."));83 return false;84 82 } 85 83 openInterface();
Note:
See TracChangeset
for help on using the changeset viewer.
