* cleared up when an API for extending the debug window is
* implemented.
*/
- VDebugWindow window = GWT.create(VDebugWindow.class);
+ VDebugWindow window = VDebugWindow.get();
if (LogConfiguration.loggingIsEnabled()) {
window.addSection((Section) GWT.create(LogSection.class));
import java.util.Date;
import com.google.gwt.core.client.Duration;
+import com.google.gwt.core.shared.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.dom.client.Style;
*/
public VDebugWindow() {
super(false, false);
- instance = this;
getElement().getStyle().setOverflow(Overflow.HIDDEN);
setStylePrimaryName(STYLENAME);
*/
public static VDebugWindow get() {
if (instance == null) {
- instance = new VDebugWindow();
+ instance = GWT.create(VDebugWindow.class);
}
return instance;
}