From 5cdd71611a62898c9f34d977ac7071c3bb434736 Mon Sep 17 00:00:00 2001 From: Jani Laakso Date: Mon, 26 Nov 2007 10:34:50 +0000 Subject: [PATCH] demo fix, bug #1191 filed. svn changeset:2957/svn branch:trunk --- src/com/itmill/toolkit/tests/TestBench.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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); -- 2.39.5