comparison artifacts/src/main/java/org/dive4elements/river/exports/process/AnnotationProcessor.java @ 9123:1cc7653ca84f

Cleanup of ChartGenerator and ChartGenerator2 code. Put some of the copy/pasted code into a common abstraction.
author gernotbelger
date Tue, 05 Jun 2018 19:21:16 +0200
parents e4606eae8ea5
children
comparison
equal deleted inserted replaced
9122:b8e7f6becf78 9123:1cc7653ca84f
36 boolean visible) { 36 boolean visible) {
37 if (!visible) { 37 if (!visible) {
38 // Nothing to do 38 // Nothing to do
39 return; 39 return;
40 } 40 }
41 CallContext context = generator.getCallContext(); 41 CallContext context = generator.getContext();
42 if (!(bundle.getData(context) instanceof RiverAnnotation)) { 42 if (!(bundle.getData(context) instanceof RiverAnnotation)) {
43 // Just a bit defensive should not happen 43 // Just a bit defensive should not happen
44 log.error("Incompatible facet in doOut"); 44 log.error("Incompatible facet in doOut");
45 return; 45 return;
46 } 46 }
60 { 60 {
61 if (!visible) { 61 if (!visible) {
62 // Nothing to do 62 // Nothing to do
63 return; 63 return;
64 } 64 }
65 CallContext context = generator.getCallContext(); 65 CallContext context = generator.getContext();
66 if (!(bundle.getData(context) instanceof RiverAnnotation)) { 66 if (!(bundle.getData(context) instanceof RiverAnnotation)) {
67 // Just a bit defensive should not happen 67 // Just a bit defensive should not happen
68 log.error("Incompatible facet in doOut"); 68 log.error("Incompatible facet in doOut");
69 return; 69 return;
70 } 70 }

http://dive4elements.wald.intevation.org