Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 611:854312c0528c
#21 Newly created projects cannot be opened twice.
flys-client/trunk@2225 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 24 Jun 2011 09:20:22 +0000 |
parents | 3cf6ee30207c |
children | dfbc6693247e |
comparison
equal
deleted
inserted
replaced
610:ea2191b1299d | 611:854312c0528c |
---|---|
112 this.parameterList = new ParameterList( | 112 this.parameterList = new ParameterList( |
113 flys, this, messages.new_project()); | 113 flys, this, messages.new_project()); |
114 | 114 |
115 addCollectionChangeHandler(this); | 115 addCollectionChangeHandler(this); |
116 addCollectionChangeHandler(parameterList); | 116 addCollectionChangeHandler(parameterList); |
117 addCollectionChangeHandler(flys); | |
117 addOutputModesChangeHandler(this); | 118 addOutputModesChangeHandler(this); |
118 addOutputModesChangeHandler(parameterList); | 119 addOutputModesChangeHandler(parameterList); |
119 addCloseClickHandler(this); | 120 addCloseClickHandler(this); |
120 | 121 |
121 parameterList.addParameterChangeHandler(this); | 122 parameterList.addParameterChangeHandler(this); |
137 messages.getString(artifact.getName()), | 138 messages.getString(artifact.getName()), |
138 artifact); | 139 artifact); |
139 | 140 |
140 addCollectionChangeHandler(this); | 141 addCollectionChangeHandler(this); |
141 addCollectionChangeHandler(parameterList); | 142 addCollectionChangeHandler(parameterList); |
143 addCollectionChangeHandler(flys); | |
142 addOutputModesChangeHandler(this); | 144 addOutputModesChangeHandler(this); |
143 addOutputModesChangeHandler(parameterList); | 145 addOutputModesChangeHandler(parameterList); |
144 addCloseClickHandler(this); | 146 addCloseClickHandler(this); |
145 | 147 |
146 parameterList.addParameterChangeHandler(this); | 148 parameterList.addParameterChangeHandler(this); |
491 } | 493 } |
492 } | 494 } |
493 | 495 |
494 | 496 |
495 public void onCloseClick(CloseClientEvent event) { | 497 public void onCloseClick(CloseClientEvent event) { |
496 hide(); | 498 if (collection != null) { |
497 destroy(); | 499 flys.closeProject(collection.identifier()); |
500 } | |
501 else { | |
502 hide(); | |
503 destroy(); | |
504 } | |
498 } | 505 } |
499 } | 506 } |
500 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 507 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |