Revision 4894 trunk/extensions/extWMS/src/com/iver/cit/gvsig/webmapcontext/ImportWebMapContextExtension.java
ImportWebMapContextExtension.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.1 2006-04-19 07:57:29 jaume
|
|
46 |
* Revision 1.2 2006-04-19 16:34:29 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.1 2006/04/19 07:57:29 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.1 2006/04/12 17:10:53 jaume |
50 | 53 |
* *** empty log message *** |
51 | 54 |
* |
... | ... | |
54 | 57 |
package com.iver.cit.gvsig.webmapcontext; |
55 | 58 |
|
56 | 59 |
import java.awt.Component; |
60 |
import java.awt.JobAttributes; |
|
57 | 61 |
import java.io.File; |
58 | 62 |
import java.text.DateFormat; |
59 | 63 |
import java.util.Date; |
60 | 64 |
|
61 | 65 |
import javax.swing.JFileChooser; |
66 |
import javax.swing.JOptionPane; |
|
62 | 67 |
import javax.swing.filechooser.FileFilter; |
63 | 68 |
|
64 | 69 |
import com.iver.andami.PluginServices; |
... | ... | |
143 | 148 |
// WMS layers |
144 | 149 |
if (wmc.layerList.get(i) instanceof FLyrWMS) { |
145 | 150 |
FLyrWMS layer = (FLyrWMS) wmc.layerList.get(i); |
146 |
layer.setFullExtent(wmc.bBox); |
|
147 | 151 |
dstView.getMapContext().getLayers().addLayer(layer); |
148 | 152 |
} |
149 | 153 |
} |
150 | 154 |
} catch (UnsupportedVersionException e) { |
155 |
JOptionPane.showMessageDialog( |
|
156 |
(Component) PluginServices.getMainFrame(), |
|
157 |
e.getMessage(), |
|
158 |
PluginServices.getText(this, "unsupported_version"), |
|
159 |
JOptionPane.ERROR_MESSAGE); |
|
151 | 160 |
e.printStackTrace(); |
152 | 161 |
} |
153 | 162 |
|
Also available in: Unified diff