From 5ecd2ccaec5ce54735cca14dccde5d4be066a63c Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 3 Jan 2011 14:46:28 +0000 Subject: [PATCH] #6225 Widgetset compiler should show load style for widgets svn changeset:16764/svn branch:6.5 --- .../widgetsetutils/WidgetMapGenerator.java | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java index 5fefa68fd8..a3f1c59846 100644 --- a/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java +++ b/src/com/vaadin/terminal/gwt/widgetsetutils/WidgetMapGenerator.java @@ -7,6 +7,7 @@ import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; import java.util.Date; +import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.TreeSet; @@ -175,11 +176,23 @@ public class WidgetMapGenerator extends Generator { "Widget set will contain implementations for following components: "); TreeSet classNames = new TreeSet(); + HashMap loadStyle = new HashMap(); for (Class class1 : paintablesHavingWidgetAnnotation) { - classNames.add(class1.getCanonicalName()); + String className = class1.getCanonicalName(); + classNames.add(className); + if (getLoadStyle(class1) == LoadStyle.DEFERRED) { + loadStyle.put(className, "DEFERRED"); + } else if (getLoadStyle(class1) == LoadStyle.LAZY) { + loadStyle.put(className, "LAZY"); + } + } - for (String string : classNames) { - logger.log(Type.INFO, "\t" + string); + for (String className : classNames) { + String msg = className; + if (loadStyle.containsKey(className)) { + msg += " (load style: " + loadStyle.get(className) + ")"; + } + logger.log(Type.INFO, "\t" + msg); } } -- 2.39.5