# HG changeset patch # User Felix Wolfsteller # Date 1343056423 0 # Node ID 90ef6fdcf688ca63a473095474cfd61c1db0b821 # Parent 5325040d35e337adcd8b7f65771d81a6414c0469 Set ld_mode. flys-artifacts/trunk@5110 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 5325040d35e3 -r 90ef6fdcf688 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Mon Jul 23 15:12:25 2012 +0000 +++ b/flys-artifacts/ChangeLog Mon Jul 23 15:13:43 2012 +0000 @@ -1,3 +1,8 @@ +2012-07-23 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java: + Set ld_mode so that FLYSUtils can use it. + 2012-07-23 Felix Wolfsteller * src/main/resources/messages.properties, diff -r 5325040d35e3 -r 90ef6fdcf688 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java Mon Jul 23 15:12:25 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/LocationSelect.java Mon Jul 23 15:13:43 2012 +0000 @@ -57,5 +57,16 @@ return STEP; } + + /** Misuse to set location mode. */ + @Override + public boolean validate(Artifact artifact) + throws IllegalArgumentException + { + ((FLYSArtifact) artifact).addStringData("ld_mode", "distance"); + return super.validate(artifact); + } + + } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :