summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-12-16 11:43:08 +0000
committerLeif Åstrand <leif@vaadin.com>2011-12-16 11:43:08 +0000
commit983e1fa38e28d4ff3af09946607ef1f71a9025c7 (patch)
tree08a2d6acdc3c7c9c9ae7b8623d4385a717754cde
parente4ea1764aeed241ac8397b1a216d70dda4f54177 (diff)
downloadvaadin-framework-983e1fa38e28d4ff3af09946607ef1f71a9025c7.tar.gz
vaadin-framework-983e1fa38e28d4ff3af09946607ef1f71a9025c7.zip
#8143 Enable using a completely different implementation for VConsole
svn changeset:22419/svn branch:6.7
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java12
1 files 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 <code>true</code> if debug logging should be quiet
+ * @return true if debug should be quiet
*/
public native static boolean isQuietDebugMode()
/*-{