Mercurial > dive4elements > river
changeset 1551:cfe88143ee89
Display edited manual points next time the point editor is opened.
flys-client/trunk@3782 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 27 Jan 2012 09:38:13 +0000 |
parents | 9bf1ffd53dfb |
children | 69b38f890bb6 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java |
diffstat | 4 files changed, 21 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Jan 27 09:27:36 2012 +0000 +++ b/flys-client/ChangeLog Fri Jan 27 09:38:13 2012 +0000 @@ -1,3 +1,11 @@ +2012-01-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java, + src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java, + src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java: + Pass updated collection to ManualPointsEditor, like this freshly + added points are visible when opening the editor next time. + 2012-01-27 Felix Wolfsteller <felix.wolfsteller@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Fri Jan 27 09:27:36 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Fri Jan 27 09:38:13 2012 +0000 @@ -145,6 +145,12 @@ } + /** Get Collection. */ + public Collection getCollection() { + return collection; + } + + /** * Returns the ThemeList of the current collection and output mode. *
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Fri Jan 27 09:27:36 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartOutputTab.java Fri Jan 27 09:38:13 2012 +0000 @@ -423,6 +423,12 @@ } + /** Get Collection from ChartThemePanel. .*/ + public Collection getCtpCollection() { + return this.ctp.getCollection(); + } + + /** * Updates the Transform2D object using the chart info service. */
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Fri Jan 27 09:27:36 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java Fri Jan 27 09:38:13 2012 +0000 @@ -208,7 +208,7 @@ /** Open editor for custom points. */ protected void openPointWindow() { - new ManualPointsEditor(chartTab.getView().getCollection(), + new ManualPointsEditor(chartTab.getCollection(), this.chartTab).show(); } }