Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 1294:94d4f040da3a
Bugfix: #326 Made the process of opening existing project more robust if the collection has no artifact set.
flys-client/trunk@2909 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 10 Oct 2011 06:38:35 +0000 |
parents | ea9a73782de4 |
children | bc06a671ef60 |
comparison
equal
deleted
inserted
replaced
1293:e88cd17b3420 | 1294:94d4f040da3a |
---|---|
154 this.tabs = new TabSet(); | 154 this.tabs = new TabSet(); |
155 this.outputTabs = new HashMap<String, OutputTab>(); | 155 this.outputTabs = new HashMap<String, OutputTab>(); |
156 this.handlers = new ArrayList<CollectionChangeHandler>(); | 156 this.handlers = new ArrayList<CollectionChangeHandler>(); |
157 this.outHandlers = new ArrayList<OutputModesChangeHandler>(); | 157 this.outHandlers = new ArrayList<OutputModesChangeHandler>(); |
158 this.layout = new VLayout(); | 158 this.layout = new VLayout(); |
159 this.parameterList = new ParameterList( | 159 |
160 flys, | 160 if (artifact != null) { |
161 this, | 161 this.parameterList = new ParameterList( |
162 messages.getString(artifact.getName()), | 162 flys, |
163 artifact); | 163 this, |
164 messages.getString(artifact.getName()), | |
165 artifact); | |
166 } | |
167 else { | |
168 this.parameterList = new ParameterList( | |
169 flys, this, messages.new_project()); | |
170 } | |
171 | |
164 this.artifactsQueue = 0; | 172 this.artifactsQueue = 0; |
165 this.newRecommendations = new Stack<Recommendation>(); | 173 this.newRecommendations = new Stack<Recommendation>(); |
166 | 174 |
167 addCollectionChangeHandler(this); | 175 addCollectionChangeHandler(this); |
168 addCollectionChangeHandler(parameterList); | 176 addCollectionChangeHandler(parameterList); |
174 parameterList.addParameterChangeHandler(this); | 182 parameterList.addParameterChangeHandler(this); |
175 | 183 |
176 init(); | 184 init(); |
177 | 185 |
178 setCollection(collection); | 186 setCollection(collection); |
179 setArtifact(artifact); | 187 |
188 if (artifact != null) { | |
189 setArtifact(artifact); | |
190 } | |
180 } | 191 } |
181 | 192 |
182 | 193 |
183 /** | 194 /** |
184 * This method handles the initial layout stuff. | 195 * This method handles the initial layout stuff. |