[Dive4elements-commits] [PATCH 2 of 2] Expand the Help Url also in the describe method

Wald Commits scm-commit at wald.intevation.org
Tue May 21 16:39:29 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1369147150 -7200
# Node ID 799af7909e8df11c33a867a0587ef78b764f22a5
# Parent  e56f0d618f9682af0453cd2839f3e336912132b6
Expand the Help Url also in the describe method

    Previosly only describeStatic set the help url correctly

diff -r e56f0d618f96 -r 799af7909e8d artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java	Tue May 21 10:12:25 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/DefaultState.java	Tue May 21 16:39:10 2013 +0200
@@ -247,8 +247,11 @@
             ArtifactNamespaceContext.NAMESPACE_URI,
             ArtifactNamespaceContext.NAMESPACE_PREFIX);
 
-        String helpText = Resources.getMsg(
-            context.getMeta(), getHelpText(), getHelpText());
+        String helpText = getHelpText();
+        if (helpText != null) {
+            helpText = replaceHelpUrl(
+                Resources.getMsg(context.getMeta(), helpText, helpText));
+        }
 
         Element ui        = null;
         String uiprovider = getUIProvider();


More information about the Dive4elements-commits mailing list