Examples of VDebugWindow


Examples of com.vaadin.client.debug.internal.VDebugWindow

            /*
             * XXX Lots of implementation details here right now. This should be
             * cleared up when an API for extending the debug window is
             * implemented.
             */
            VDebugWindow window = GWT.create(VDebugWindow.class);

            if (LogConfiguration.loggingIsEnabled()) {
                window.addSection((Section) GWT.create(LogSection.class));
            }
            window.addSection((Section) GWT.create(InfoSection.class));
            window.addSection((Section) GWT.create(HierarchySection.class));
            window.addSection((Section) GWT.create(NetworkSection.class));
            window.addSection((Section) GWT.create(TestBenchSection.class));
            if (Profiler.isEnabled()) {
                window.addSection((Section) GWT.create(ProfilerSection.class));
            }

            if (isQuietDebugMode()) {
                window.close();
            } else {
                // Load debug window styles asynchronously
                GWT.runAsync(new RunAsyncCallback() {
                    @Override
                    public void onSuccess() {
                        DebugWindowStyles dws = GWT
                                .create(DebugWindowStyles.class);
                        dws.css().ensureInjected();
                    }

                    @Override
                    public void onFailure(Throwable reason) {
                        Window.alert("Failed to load Vaadin debug window styles");
                    }
                });

                window.init();
            }

            // Connect to the legacy API
            VConsole.setImplementation(window);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.