Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/Config.java @ 6479:ac6c41fcae55
Use help-url provided by ServerInfoService (fix for #1197).
Required some changes in FLYS.onModuleLoad(), should be reviewed by someone.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 27 Jun 2013 17:36:51 +0200 |
parents | c702bac7f72e |
children | 9f3ffb218bc0 |
comparison
equal
deleted
inserted
replaced
6478:6e54f72b4caf | 6479:ac6c41fcae55 |
---|---|
27 protected static Config INSTANCE; | 27 protected static Config INSTANCE; |
28 | 28 |
29 /** The xml document that contains the configuration options. */ | 29 /** The xml document that contains the configuration options. */ |
30 protected Document config; | 30 protected Document config; |
31 | 31 |
32 protected String helpUrl; | |
32 | 33 |
33 /** | 34 /** |
34 * Get an instance by using {@link getInstance(Document)} or {@link | 35 * Get an instance by using {@link getInstance(Document)} or {@link |
35 * getInstance()}. | 36 * getInstance()}. |
36 */ | 37 */ |
83 * Returns the URL of the FLYS/d4e-Wiki. | 84 * Returns the URL of the FLYS/d4e-Wiki. |
84 * | 85 * |
85 * @return wiki base URL | 86 * @return wiki base URL |
86 */ | 87 */ |
87 public String getWikiUrl() { | 88 public String getWikiUrl() { |
88 Node server = config.getElementsByTagName("wiki").item(0); | 89 return this.helpUrl; |
89 return server.getFirstChild().getNodeValue(); | 90 } |
91 | |
92 public void setWikiUrl(String url) { | |
93 this.helpUrl = url; | |
90 } | 94 } |
91 | 95 |
92 | 96 |
93 /** | 97 /** |
94 * Returns the name of the current locale. | 98 * Returns the name of the current locale. |