# HG changeset patch # User Raimund Renkert # Date 1327053168 0 # Node ID 8b4688a2e25d271e98808ce8c28de44cf9fe47ed # Parent f1f0e9c75026a5257b4b5ad98f57285f4b6a4581 Set the empty facet to invisible. flys-client/trunk@3739 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r f1f0e9c75026 -r 8b4688a2e25d flys-client/ChangeLog --- a/flys-client/ChangeLog Fri Jan 20 09:25:00 2012 +0000 +++ b/flys-client/ChangeLog Fri Jan 20 09:52:48 2012 +0000 @@ -1,3 +1,10 @@ +2012-01-20 Raimund Renkert + + Set the empty facet to invisible. + + * src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java: + Hide empty facets in theme list. + 2012-01-20 Raimund Renkert Added new artifact to be able to open existing 'new chart' projects. diff -r f1f0e9c75026 -r 8b4688a2e25d flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Fri Jan 20 09:25:00 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java Fri Jan 20 09:52:48 2012 +0000 @@ -230,6 +230,10 @@ for (int i = 1; i <= count; i++) { Theme theme = themeList.getThemeAt(i); + if(theme.getFacet().equals("empty.facet")) { + theme.setVisible(0); + } + if (theme == null || theme.getVisible() == 0) { continue; }