Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/WDifferencesState.java @ 7029:a3d4153afb16
issue1470: Make validate of WDifferencesState return true if in "new chart".
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 17 Sep 2013 09:31:33 +0200 |
parents | e8e76d50d119 |
children | 6205fe683ac7 |
comparison
equal
deleted
inserted
replaced
7028:d12363a7d84a | 7029:a3d4153afb16 |
---|---|
63 @Override | 63 @Override |
64 public boolean validate(Artifact artifact) | 64 public boolean validate(Artifact artifact) |
65 throws IllegalArgumentException | 65 throws IllegalArgumentException |
66 { | 66 { |
67 D4EArtifact flys = (D4EArtifact) artifact; | 67 D4EArtifact flys = (D4EArtifact) artifact; |
68 if (artifact instanceof ChartArtifact) { | |
69 return true; | |
70 } | |
68 | 71 |
69 StateData data = flys.getData("diffids"); | 72 StateData data = flys.getData("diffids"); |
70 | 73 |
71 if (data == null) { | 74 if (data == null) { |
72 throw new IllegalArgumentException("diffids is empty"); | 75 throw new IllegalArgumentException("diffids is empty"); |