svn-gvsig-desktop / tags / v1_1_Build_1006 / extensions / extGeoProcessing / src / com / iver / cit / gvsig / geoprocess / core / GeoprocessPluginAbstract.java @ 12458
History | View | Annotate | Download (685 Bytes)
1 | 12237 | jmvivo | package com.iver.cit.gvsig.geoprocess.core; |
---|---|---|---|
2 | |||
3 | import java.net.URL; |
||
4 | import java.util.Locale; |
||
5 | |||
6 | import com.iver.cit.gvsig.geoprocess.impl.buffer.BufferGeoprocessPlugin; |
||
7 | |||
8 | public abstract class GeoprocessPluginAbstract implements IGeoprocessPlugin { |
||
9 | |||
10 | public URL getHtmlDescription() { |
||
11 | Locale locale = Locale.getDefault(); |
||
12 | String localeStr = locale.getLanguage();
|
||
13 | String urlStr = "resources/description_" + |
||
14 | localeStr + |
||
15 | ".html";
|
||
16 | URL url = this.getClass(). |
||
17 | getResource(urlStr); |
||
18 | if (url == null){ |
||
19 | localeStr = "en";
|
||
20 | urlStr = "resources/description_" +
|
||
21 | localeStr + |
||
22 | ".html";
|
||
23 | url = this.getClass().
|
||
24 | getResource(urlStr); |
||
25 | } |
||
26 | return url;
|
||
27 | } |
||
28 | |||
29 | } |