Revision 2317 org.gvsig.raster.wms/branches/org.gvsig.raster.wms_dataaccess_refactoring/org.gvsig.raster.wms.app.wmsclient/src/main/java/org/gvsig/raster/wms/app/wmsclient/gui/dialog/WMSPropsDialog.java
WMSPropsDialog.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
package org.gvsig.raster.wms.app.wmsclient.gui.dialog; |
24 | 24 |
|
25 |
import java.awt.Component; |
|
26 | 25 |
import java.awt.Dimension; |
27 | 26 |
import java.awt.event.ActionEvent; |
28 | 27 |
import java.awt.event.ActionListener; |
... | ... | |
40 | 39 |
import org.gvsig.andami.ui.mdiManager.WindowInfo; |
41 | 40 |
import org.gvsig.app.gui.wizards.WizardListener; |
42 | 41 |
import org.gvsig.app.gui.wizards.WizardListenerSupport; |
43 |
import org.gvsig.fmap.dal.coverage.exception.RemoteServiceException;
|
|
42 |
import org.gvsig.fmap.dal.coverage.exception.ConnectException;
|
|
44 | 43 |
import org.gvsig.fmap.dal.exception.InitializeException; |
45 | 44 |
import org.gvsig.fmap.mapcontext.MapContext; |
46 | 45 |
import org.gvsig.fmap.mapcontext.exceptions.ConnectionErrorLayerException; |
... | ... | |
160 | 159 |
|
161 | 160 |
try { |
162 | 161 |
explorer.connect(new CancelTaskImpl(), true); |
163 |
} catch (RemoteServiceException e) {
|
|
162 |
} catch (ConnectException e) {
|
|
164 | 163 |
RasterSwingLibrary.messageBoxError("The connection cannot be established", this, e); |
165 | 164 |
return null; |
166 | 165 |
} |
... | ... | |
301 | 300 |
//m_tp = tp; |
302 | 301 |
} |
303 | 302 |
|
304 |
/* (non-Javadoc) |
|
305 |
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent) |
|
306 |
*/ |
|
307 | 303 |
@SuppressWarnings({ "unchecked" }) |
308 | 304 |
public void actionPerformed(ActionEvent e) { |
309 | 305 |
if (e.getActionCommand() == "CANCEL") { |
310 | 306 |
close(); |
311 | 307 |
} else { |
312 |
try { |
|
308 |
/*try {
|
|
313 | 309 |
((FLyrWMS) fLayer).setFullExtent(wmsParamsTabbedPane.getLayersRectangle()); |
314 | 310 |
} catch (ProjectionLayerException ex) { |
315 | 311 |
ex.printStackTrace(); |
316 | 312 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), ex.getMessage()); |
317 | 313 |
return; |
318 |
} |
|
314 |
}*/
|
|
319 | 315 |
((FLyrWMS) fLayer).getParameters().setFormat(wmsParamsTabbedPane.getFormat()); |
320 | 316 |
((FLyrWMS) fLayer).getParameters().setInfoFormat(wmsParamsTabbedPane.getInfoFormat()); |
321 | 317 |
try { |
Also available in: Unified diff