<replace-with class="com.vaadin.terminal.gwt.client.VSchedulerImpl">
<when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
</replace-with>
+
+ <replace-with class="com.vaadin.terminal.gwt.client.VDebugConsole">
+ <when-type-is class="com.vaadin.terminal.gwt.client.Console" />
+ </replace-with>
<!-- Use our own history impl for IE to workaround #2931. -->
<replace-with class="com.vaadin.terminal.gwt.client.HistoryImplIEVaadin">
}
// Prepare VConsole for debugging
if (isDebugMode()) {
- VDebugConsole console = GWT.create(VDebugConsole.class);
+ Console console = GWT.create(Console.class);
console.setQuietMode(isQuietDebugMode());
console.init();
VConsole.setImplementation(console);
}
}-*/;
- private native static boolean isQuietDebugMode()
+ /**
+ * Checks whether debug logging should be quiet
+ *
+ * @return <code>true</code> if debug logging should be quiet
+ */
+ public native static boolean isQuietDebugMode()
/*-{
var uri = $wnd.location;
var re = /debug=q[^\/]*$/;
Set<Paintable> zeroHeightComponents,
Set<Paintable> zeroWidthComponents);
+ public abstract void setQuietMode(boolean quietDebugMode);
+
+ public abstract void init();
+
}
\ No newline at end of file
GWT.log(e.getMessage(), e);
}
+ public void setQuietMode(boolean quietDebugMode) {
+ }
+
+ public void init() {
+ }
+
}
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.terminal.gwt.client.ApplicationConnection;
import com.vaadin.terminal.gwt.client.BrowserInfo;
+import com.vaadin.terminal.gwt.client.Console;
import com.vaadin.terminal.gwt.client.Container;
import com.vaadin.terminal.gwt.client.EventId;
import com.vaadin.terminal.gwt.client.Focusable;
import com.vaadin.terminal.gwt.client.RenderSpace;
import com.vaadin.terminal.gwt.client.UIDL;
import com.vaadin.terminal.gwt.client.Util;
-import com.vaadin.terminal.gwt.client.VDebugConsole;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.BeforeShortcutActionListener;
import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
// debug window
Widget w = Util.findWidget(target, null);
while (w != null) {
- if (w instanceof VDebugConsole) {
+ if (w instanceof Console) {
return true; // allow debug-window clicks
} else if (w instanceof Paintable) {
return false;