comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ExportPanel.java @ 2931:d6983b78de45

Export panel: Make code more robust when trying to resolve missing i18n strings. flys-client/trunk@4846 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 02 Jul 2012 09:11:43 +0000
parents db1bf06012db
children b67af5b44d68
comparison
equal deleted inserted replaced
2930:e8eca6eeeec0 2931:d6983b78de45
1 package de.intevation.flys.client.client.ui; 1 package de.intevation.flys.client.client.ui;
2 2
3 import java.util.List; 3 import java.util.List;
4 import java.util.MissingResourceException;
4 5
5 import com.google.gwt.core.client.GWT; 6 import com.google.gwt.core.client.GWT;
6 7
7 import com.smartgwt.client.widgets.Canvas; 8 import com.smartgwt.client.widgets.Canvas;
8 import com.smartgwt.client.widgets.Label; 9 import com.smartgwt.client.widgets.Label;
125 * @param facet The name of the export type (e.g. CSV, WST). 126 * @param facet The name of the export type (e.g. CSV, WST).
126 * 127 *
127 * @return a tooltip text. 128 * @return a tooltip text.
128 */ 129 */
129 protected String getTooltipText(String name, String facet) { 130 protected String getTooltipText(String name, String facet) {
130 return MSG.getString(name) + " | " + MSG.getString(facet); 131 try {
132 return MSG.getString(name) + " | " + MSG.getString(facet);
133 }
134 catch (MissingResourceException mre) {
135 return name + " | " + facet;
136 }
131 } 137 }
132 } 138 }
133 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 139 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org