From: Jani Laakso Date: Mon, 26 Nov 2007 10:34:50 +0000 (+0000) Subject: demo fix, bug #1191 filed. X-Git-Tag: 6.7.0.beta1~5461 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5cdd71611a62898c9f34d977ac7071c3bb434736;p=vaadin-framework.git demo fix, bug #1191 filed. svn changeset:2957/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/tests/TestBench.java b/src/com/itmill/toolkit/tests/TestBench.java index 5e6d875353..76f1c119c5 100644 --- a/src/com/itmill/toolkit/tests/TestBench.java +++ b/src/com/itmill/toolkit/tests/TestBench.java @@ -88,15 +88,18 @@ public class TestBench extends com.itmill.toolkit.Application implements } menu = new Tree("Testables", testables); - // simplify captions + for (Iterator i = itemCaptions.keySet().iterator(); i.hasNext();) { Class testable = (Class) i.next(); - menu.setItemCaption(testable, testable.getName()); - } - // collapse all items within menu - for (Iterator i = menu.rootItemIds().iterator(); i.hasNext();) { - menu.collapseItemsRecursively(i.next()); + // simplify captions + String name = testable.getName().replaceAll("com.itmill.toolkit.", + ""); + menu.setItemCaption(testable, name); + // TODO fix #1191 + System.err.println(name); + menu.collapseItem(testable); } + menu.addListener(this); menu.setImmediate(true);