changeset 123:8cc96c9cc962

Added some missing RessourceValues gnv-artifacts/trunk@194 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 06 Oct 2009 13:51:28 +0000 (2009-10-06)
parents c2c669ac6ecc
children bd37021d8f4d
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ressource/RessourceFactory.java gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/horizontal/NorthSouthEastWestTransition.java
diffstat 3 files changed, 18 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Tue Oct 06 12:30:13 2009 +0000
+++ b/gnv-artifacts/ChangeLog	Tue Oct 06 13:51:28 2009 +0000
@@ -1,3 +1,12 @@
+2009-10-06  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/artifacts/ressource/RessourceFactory.java (getRessource) Edited:
+	  Added missing Import 
+	* src/main/java/de/intevation/gnv/transition/profile/horizontal/NorthSouthEastWestTransition.java (advance) Edited:
+	  Added i18n Support 
+	* src/main/resources/lang/artifactMessages*.properties Edited:
+	  Added some missing RessourceValues 
+
 2009-10-06	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/test/ressources/verticalprofile_instantaneouspoint/verticalprofile_step_04_out_csv.xml,
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ressource/RessourceFactory.java	Tue Oct 06 12:30:13 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/ressource/RessourceFactory.java	Tue Oct 06 13:51:28 2009 +0000
@@ -3,6 +3,7 @@
  */
 package de.intevation.gnv.artifacts.ressource;
 
+import java.util.MissingResourceException;
 import java.util.ResourceBundle;
 
 import org.apache.log4j.Logger;
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/horizontal/NorthSouthEastWestTransition.java	Tue Oct 06 12:30:13 2009 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/transition/profile/horizontal/NorthSouthEastWestTransition.java	Tue Oct 06 13:51:28 2009 +0000
@@ -7,6 +7,7 @@
 import java.util.Collection;
 
 import de.intevation.artifacts.CallMeta;
+import de.intevation.gnv.artifacts.ressource.RessourceFactory;
 import de.intevation.gnv.geobackend.base.Result;
 import de.intevation.gnv.transition.TransitionBase;
 import de.intevation.gnv.transition.describedata.DefaultKeyValueDescribeData;
@@ -44,19 +45,19 @@
      */
     @Override
     public void advance(String uuid,CallMeta callMeta) throws TransitionException {
-        this.purifyResult(null, uuid);
-    }
-
-    @Override
-    protected void purifyResult(Collection<Result> result, String uuid) {
         if (this.descibeData == null){
             this.descibeData = new ArrayList<Object>();
         }
         NamedCollection<KeyValueDescibeData> keyValueDescibeData = new NamedArrayList<KeyValueDescibeData>(this.dataName,2);
         keyValueDescibeData.setMultiSelect(super.dataMultiSelect);
-        keyValueDescibeData.add(new DefaultKeyValueDescribeData("IPOSITION", "IPOSITION"));
-        keyValueDescibeData.add(new DefaultKeyValueDescribeData("JPOSITION", "JPOSITION"));
+        keyValueDescibeData.add(new DefaultKeyValueDescribeData("IPOSITION", RessourceFactory.getInstance().getRessource(callMeta.getLanguages(), "iposition", "iposition")));
+        keyValueDescibeData.add(new DefaultKeyValueDescribeData("JPOSITION", RessourceFactory.getInstance().getRessource(callMeta.getLanguages(), "jposition", "jposition")));
         this.descibeData.add(keyValueDescibeData);
     }
 
+    @Override
+    protected void purifyResult(Collection<Result> result, String uuid) {
+        
+    }
+
 }

http://dive4elements.wald.intevation.org