Mercurial > dive4elements > gnv-client
comparison gnv/src/main/java/de/intevation/gnv/action/NextArtifactStepAction.java @ 681:15ac78a91d1b
Removed trailing whitespace.
gnv/trunk@852 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 29 Mar 2010 08:04:15 +0000 |
parents | 27f25b9ae9af |
children | d49e8695786c |
comparison
equal
deleted
inserted
replaced
680:ba3370dbc8c5 | 681:15ac78a91d1b |
---|---|
30 | 30 |
31 | 31 |
32 /** | 32 /** |
33 * @author Tim Englich <tim.englich@intevation.de> | 33 * @author Tim Englich <tim.englich@intevation.de> |
34 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | 34 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) |
35 * | 35 * |
36 */ | 36 */ |
37 public class NextArtifactStepAction extends DescribeUIAction { | 37 public class NextArtifactStepAction extends DescribeUIAction { |
38 | 38 |
39 /** | 39 /** |
40 * the logger, used to log exceptions and additonaly information | 40 * the logger, used to log exceptions and additonaly information |
91 // one reachable | 91 // one reachable |
92 // state. | 92 // state. |
93 } else { | 93 } else { |
94 target = ad.getReachableStates().iterator().next(); | 94 target = ad.getReachableStates().iterator().next(); |
95 } | 95 } |
96 | 96 |
97 try { | 97 try { |
98 adc.doNextStep( | 98 adc.doNextStep( |
99 sm.getSelectedArtifactFactory(), | 99 sm.getSelectedArtifactFactory(), |
100 sm.getCurrentArtifact(), | 100 sm.getCurrentArtifact(), |
101 target, | 101 target, |
102 ips | 102 ips |
103 ); | 103 ); |
104 } | 104 } |
114 log.error(e, e); | 114 log.error(e, e); |
115 request.setAttribute( | 115 request.setAttribute( |
116 CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, | 116 CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, |
117 e.getMessage()); | 117 e.getMessage()); |
118 } | 118 } |
119 | 119 |
120 Map tmpOuts = ad.getOutputModes(); | 120 Map tmpOuts = ad.getOutputModes(); |
121 request.setAttribute( | 121 request.setAttribute( |
122 "furthertargets", | 122 "furthertargets", |
123 tmpOuts == null || tmpOuts.isEmpty() | 123 tmpOuts == null || tmpOuts.isEmpty() |
124 ); | 124 ); |
127 adc.getCurrentStepDescription( | 127 adc.getCurrentStepDescription( |
128 sm.getSelectedArtifactFactory(), | 128 sm.getSelectedArtifactFactory(), |
129 sm.getCurrentArtifact(), | 129 sm.getCurrentArtifact(), |
130 true | 130 true |
131 ); | 131 ); |
132 | 132 |
133 request.setAttribute("diagramm", true); | 133 request.setAttribute("diagramm", true); |
134 | 134 |
135 } | 135 } |
136 catch (ArtifactDatabaseInputException e) { | 136 catch (ArtifactDatabaseInputException e) { |
137 log.debug("================ CATCH ME ======================"); | 137 log.debug("================ CATCH ME ======================"); |
138 log.debug("===== ERROR MSG: " + e.getMessage()); | 138 log.debug("===== ERROR MSG: " + e.getMessage()); |
139 log.error(e, e); | 139 log.error(e, e); |
145 log.error(e, e); | 145 log.error(e, e); |
146 request.setAttribute( | 146 request.setAttribute( |
147 CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, | 147 CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, |
148 e.getMessage()); | 148 e.getMessage()); |
149 } | 149 } |
150 | 150 |
151 request.setAttribute("furthertargets", false); | 151 request.setAttribute("furthertargets", false); |
152 } | 152 } |
153 }else{ | 153 }else{ |
154 log.warn("SessionTimeout has occured"); | 154 log.warn("SessionTimeout has occured"); |
155 request.setAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, | 155 request.setAttribute(CommunicationKeys.REQUEST_EXCEPTION_MESSAGE_ID, |
156 "SessionTimeout has occured"); | 156 "SessionTimeout has occured"); |
157 new FetchArtifactFactoriesAction().execute(mapping, form, request, response); | 157 new FetchArtifactFactoriesAction().execute(mapping, form, request, response); |
158 } | 158 } |
159 return super.execute(mapping, form, request, response); | 159 return super.execute(mapping, form, request, response); |
160 } | 160 } |