Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/FLYS.java @ 6033:b73a55a5e536
Doc and TODO issue1081
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 15 May 2013 16:20:10 +0200 |
parents | ea9eef426962 |
children | 766cba02ae4a |
comparison
equal
deleted
inserted
replaced
6032:1883a133a1c6 | 6033:b73a55a5e536 |
---|---|
466 | 466 |
467 mainValueView.setTitle(MSG.mainvalues() + " " + gauge.getName() + " (" + gauge.getRiverName() + ")" ); | 467 mainValueView.setTitle(MSG.mainvalues() + " " + gauge.getName() + " (" + gauge.getRiverName() + ")" ); |
468 workspace.addChild(mainValueView); | 468 workspace.addChild(mainValueView); |
469 } | 469 } |
470 | 470 |
471 | |
472 /** Open window with gauges discharge curve. */ | |
471 public void newGaugeDischargeCurve(String river, Long gaugeref) { | 473 public void newGaugeDischargeCurve(String river, Long gaugeref) { |
472 Config config = Config.getInstance(); | 474 Config config = Config.getInstance(); |
473 | 475 |
474 final String locale = config.getLocale(); | 476 final String locale = config.getLocale(); |
475 final String riv = river; | 477 final String riv = river; |
481 if (user == null) { | 483 if (user == null) { |
482 SC.warn(MSG.error_not_logged_in()); | 484 SC.warn(MSG.error_not_logged_in()); |
483 return; | 485 return; |
484 } | 486 } |
485 | 487 |
488 // TODO 1081, this collection needs to be added a mainvalue artifact | |
486 collectionService.create(locale, user.identifier(), | 489 collectionService.create(locale, user.identifier(), |
487 new AsyncCallback<Collection>() { | 490 new AsyncCallback<Collection>() { |
488 @Override | 491 @Override |
489 public void onFailure(Throwable caught) { | 492 public void onFailure(Throwable caught) { |
490 GWT.log("Could not create new collection."); | 493 GWT.log("Could not create new collection."); |