Example usage for com.google.gwt.debugpanel.client DefaultExceptionDebugPanelComponent DefaultExceptionDebugPanelComponent

List of usage examples for com.google.gwt.debugpanel.client DefaultExceptionDebugPanelComponent DefaultExceptionDebugPanelComponent

Introduction

In this page you can find the example usage for com.google.gwt.debugpanel.client DefaultExceptionDebugPanelComponent DefaultExceptionDebugPanelComponent.

Prototype

public DefaultExceptionDebugPanelComponent(ExceptionModel model) 

Source Link

Usage

From source file:com.example.panel.client.MyDebugPanel.java

License:Apache License

public void onModuleLoad() {
    sys = new GwtStatisticsEventSystem();
    panelComponent = new DefaultDebugStatisticsDebugPanelComponent(null);
    xmlComponent = panelComponent.xmlComponent();
    logComponent = new DefaultRawLogDebugPanelComponent(sys);
    em = new GwtExceptionModel();

    // Find the debug-panel div, or add it to (current) bottom of page.
    RootPanel root = RootPanel.get("debug-panel");
    if (root == null) {
        root = RootPanel.get();/*from  w w w  . j  a  v  a2s .  c o m*/
    }

    root.add(new DebugPanelWidget(this, true,
            new DebugPanelWidget.Component[] { panelComponent, new DefaultExceptionDebugPanelComponent(em),
                    new DefaultCookieDebugPanelComponent(), logComponent, xmlComponent }));
}