From 983e1fa38e28d4ff3af09946607ef1f71a9025c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 16 Dec 2011 11:43:08 +0000 Subject: [PATCH] #8143 Enable using a completely different implementation for VConsole svn changeset:22419/svn branch:6.7 --- .../gwt/client/ApplicationConfiguration.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java index a60fb808a1..15a33e8970 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java @@ -450,8 +450,12 @@ public class ApplicationConfiguration implements EntryPoint { // Prepare VConsole for debugging if (isDebugMode()) { Console console = GWT.create(Console.class); - console.setQuietMode(isQuietDebugMode()); - console.init(); + if (console instanceof VDebugConsole) { + // Methods from VDebugConsole not present in Console + VDebugConsole vDebugConsole = (VDebugConsole) console; + vDebugConsole.setQuietMode(isQuietDebugMode()); + vDebugConsole.init(); + } VConsole.setImplementation(console); } else { VConsole.setImplementation((Console) GWT.create(NullConsole.class)); @@ -507,9 +511,9 @@ public class ApplicationConfiguration implements EntryPoint { }-*/; /** - * Checks whether debug logging should be quiet + * Checks whether debugging should be quit * - * @return true if debug logging should be quiet + * @return true if debug should be quiet */ public native static boolean isQuietDebugMode() /*-{ -- 2.39.5