Revision 3486 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/chooseResource/ChooseResourcePanel.java
ChooseResourcePanel.java | ||
---|---|---|
89 | 89 |
} |
90 | 90 |
|
91 | 91 |
private String getNameButton(String protocol){ |
92 |
if (protocol.toLowerCase().indexOf("ogc:wcs") >= 0)
|
|
92 |
if (protocol.toUpperCase().indexOf(Resource.WCS) >= 0)
|
|
93 | 93 |
return Translator.getText(translator,"wcsColumn"); |
94 | 94 |
|
95 |
if (protocol.toLowerCase().indexOf("ogc:wms") >= 0)
|
|
95 |
if (protocol.toUpperCase().indexOf(Resource.WMS) >= 0)
|
|
96 | 96 |
return Translator.getText(translator,"wmsColumn"); |
97 | 97 |
|
98 |
if (protocol.toLowerCase().indexOf("ogc:wfs") >= 0)
|
|
98 |
if (protocol.toUpperCase().indexOf(Resource.WFS) >= 0)
|
|
99 | 99 |
return Translator.getText(translator,"wfsColumn"); |
100 | 100 |
|
101 |
if (protocol.toLowerCase().indexOf("postgis") >= 0)
|
|
101 |
if (protocol.toUpperCase().indexOf(Resource.POSTGIS) >= 0)
|
|
102 | 102 |
return Translator.getText(translator,"postgisColumn"); |
103 | 103 |
|
104 |
if (protocol.toLowerCase().indexOf("www:link") >= 0)
|
|
104 |
if (protocol.toUpperCase().indexOf(Resource.WEBSITE) >= 0)
|
|
105 | 105 |
return Translator.getText(translator,"linkColumn"); |
106 | 106 |
|
107 |
if (protocol.toLowerCase().indexOf("www:download") >= 0)
|
|
108 |
return Translator.getText(translator,"downloadColumn");;
|
|
107 |
if (protocol.toUpperCase().indexOf(Resource.DOWNLOAD) >= 0)
|
|
108 |
return Translator.getText(translator,"downloadColumn"); |
|
109 | 109 |
|
110 |
return "Desconocido";
|
|
110 |
return Translator.getText(translator,"unknown");
|
|
111 | 111 |
} |
112 | 112 |
|
113 | 113 |
private void initialize() { |
Also available in: Unified diff