Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageWidget.java @ 892:63b258bf365c
Bugfix: Use name instead of description for loading new facets via Datacage.
flys-client/trunk@2735 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 14 Sep 2011 10:00:55 +0000 |
parents | ace7e9cfbb7f |
children | 2b6efb8b2301 |
comparison
equal
deleted
inserted
replaced
891:f6c14ffdfd07 | 892:63b258bf365c |
---|---|
177 node = stack.pop(); | 177 node = stack.pop(); |
178 String factory = node.getAttribute("factory"); | 178 String factory = node.getAttribute("factory"); |
179 if (factory != null) { // we need at least a factory | 179 if (factory != null) { // we need at least a factory |
180 String artifact = node.getAttribute("artifact-id"); | 180 String artifact = node.getAttribute("artifact-id"); |
181 String out = node.getAttribute("out"); | 181 String out = node.getAttribute("out"); |
182 String name = node.getName(); | 182 String name = node.getAttribute("facet"); |
183 String ids = node.getAttribute("ids"); | 183 String ids = node.getAttribute("ids"); |
184 | 184 |
185 toLoad.add(artifact, factory, out, name, ids); | 185 toLoad.add(artifact, factory, out, name, ids); |
186 } | 186 } |
187 TreeNode [] children = tree.getChildren(node); | 187 TreeNode [] children = tree.getChildren(node); |
245 TreeNode tn = new TreeNode(); | 245 TreeNode tn = new TreeNode(); |
246 int id = idGenerator.next(); | 246 int id = idGenerator.next(); |
247 tn.setAttribute("parent-id", parentId); | 247 tn.setAttribute("parent-id", parentId); |
248 tn.setAttribute("id", id); | 248 tn.setAttribute("id", id); |
249 // TODO: i18n | 249 // TODO: i18n |
250 tn.setAttribute("name", node.getName()); | 250 tn.setAttribute("name", node.getDescription()); |
251 tn.setAttribute("facet", node.getName()); | |
251 nodes.add(tn); | 252 nodes.add(tn); |
252 AttrList attrs = node.getAttributes(); | 253 AttrList attrs = node.getAttributes(); |
253 if (attrs != null) { | 254 if (attrs != null) { |
254 for (int i = 0, N = attrs.size(); i < N; ++i) { | 255 for (int i = 0, N = attrs.size(); i < N; ++i) { |
255 String key = attrs.getKey(i); | 256 String key = attrs.getKey(i); |