Revision 32205 trunk/extensions/extPublishMapserver/src/org/gvsig/publish/mapserver/gui/MSBasicPanel.java
MSBasicPanel.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
import java.awt.event.ActionListener; |
44 | 44 |
import java.io.File; |
45 |
import java.net.MalformedURLException; |
|
45 | 46 |
import java.util.EventListener; |
46 | 47 |
|
47 | 48 |
import javax.swing.JPanel; |
... | ... | |
52 | 53 |
import org.gvsig.publish.mapserver.model.Mapserver; |
53 | 54 |
|
54 | 55 |
import com.iver.andami.PluginServices; |
56 |
import com.iver.andami.messages.NotificationManager; |
|
55 | 57 |
|
56 | 58 |
public class MSBasicPanel extends JPanel implements IPublishPluginPanel { |
57 | 59 |
public final static String MAPFILE_CHOOSE_PATH_EVENT="mapfile_path_event"; |
... | ... | |
67 | 69 |
initComponents(); |
68 | 70 |
initIcons(); |
69 | 71 |
initLabels(); |
72 |
fileButton.setVisible(false); |
|
73 |
mapfileField.setVisible(false); |
|
74 |
mapfileLabel.setVisible(false); |
|
70 | 75 |
} |
71 | 76 |
private void initLabels() { |
72 | 77 |
urlLabel.setText(PluginServices.getText(this,"publishms_mapserver_url")); |
... | ... | |
195 | 200 |
if (model_server.getMapfileFile() !=null){ |
196 | 201 |
mapfileField.setText(model_server.getMapfileFile().getAbsolutePath()); |
197 | 202 |
} |
198 |
urlField.setText(model_server.getServerURL().toString()); |
|
203 |
try { |
|
204 |
urlField.setText(model_server.getServerURL().toString()); |
|
205 |
} catch (MalformedURLException e) { |
|
206 |
NotificationManager.showMessageError(PluginServices.getText(this,"publish_malformed_url"), e); |
|
207 |
} |
|
199 | 208 |
} |
200 | 209 |
|
201 | 210 |
} |
Also available in: Unified diff