Revision 15
org.gvsig.webmap/trunk/org.gvsig.webmap/org.gvsig.webmap.app/org.gvsig.webmap.app.mainplugin/src/main/java/org/gvsig/webmap/app/mainplugin/AddWebMapLayerWizard.java | ||
---|---|---|
31 | 31 |
import java.util.List; |
32 | 32 |
import java.util.Map; |
33 | 33 |
|
34 |
import javax.swing.JLabel; |
|
34 | 35 |
import javax.swing.JOptionPane; |
35 | 36 |
import javax.swing.JTabbedPane; |
36 | 37 |
|
... | ... | |
88 | 89 |
|
89 | 90 |
apiUI = new JTabbedPane(); |
90 | 91 |
List<WebMapServiceFactory> serviceFactories = WebMapLocator.getManager().getServices(); |
91 |
for (WebMapServiceFactory serviceFactory:serviceFactories){ |
|
92 |
WebMapService webMapService= serviceFactory.create(); |
|
93 |
services.put(webMapService.getLabel(), webMapService); |
|
94 |
apiUI.add(webMapService.getLabel(), webMapService.getParametersPanel().asJComponent()); |
|
92 |
if (serviceFactories.isEmpty()){ |
|
93 |
apiUI.add(new JLabel(i18nManager.getTranslation("_not_installed_webmap_services_found"))); |
|
94 |
}else{ |
|
95 |
for (WebMapServiceFactory serviceFactory:serviceFactories){ |
|
96 |
WebMapService webMapService= serviceFactory.create(); |
|
97 |
services.put(webMapService.getLabel(), webMapService); |
|
98 |
apiUI.add(webMapService.getLabel(), webMapService.getParametersPanel().asJComponent()); |
|
99 |
} |
|
95 | 100 |
} |
96 | 101 |
apiUI.addMouseListener(this); |
97 | 102 |
add(apiUI, gridBagConstraints); |
... | ... | |
148 | 153 |
|
149 | 154 |
@Override |
150 | 155 |
public void execute() { |
156 |
if (services.isEmpty()){ |
|
157 |
close(); |
|
158 |
return; |
|
159 |
} |
|
151 | 160 |
if(!areSettingsValid()) { |
152 | 161 |
messageBoxInfo("error_creating_parameters", PluginServices.getMDIManager().getActiveWindow(), null); |
153 | 162 |
return; |
org.gvsig.webmap/trunk/org.gvsig.webmap/org.gvsig.webmap.app/org.gvsig.webmap.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 | 1 |
#Translations for language [es] |
2 | 2 |
#Mon Feb 26 16:06:24 CET 2007 |
3 |
_WebMapInvalidParametersException=Parametros invalidos |
|
3 |
_WebMapInvalidParametersException=Parametros invalidos |
|
4 |
_not_installed_webmap_services_found=No se han encontrado servicios de webmap instalados |
org.gvsig.webmap/trunk/org.gvsig.webmap/org.gvsig.webmap.app/org.gvsig.webmap.app.mainplugin/src/main/resources-plugin/i18n/text_en.properties | ||
---|---|---|
1 | 1 |
#Translations for language [en] |
2 | 2 |
#Tue Jun 05 16:07:12 CEST 2007 |
3 |
_WebMapInvalidParametersException=Invalid parameters |
|
4 |
_not_installed_webmap_services_found=Not installed webmap services have been found |
Also available in: Unified diff