Example usage for com.google.gwt.dev.shell.designtime ModuleSpace dispose

List of usage examples for com.google.gwt.dev.shell.designtime ModuleSpace dispose

Introduction

In this page you can find the example usage for com.google.gwt.dev.shell.designtime ModuleSpace dispose.

Prototype

public void dispose() throws Exception 

Source Link

Usage

From source file:com.google.gdt.eclipse.designer.ie.BrowserShellIE.java

License:Open Source License

@Override
public void dispose() {
    m_shell.dispose();/*from   ww w .  j  a  v a  2 s  .  co m*/
    try {
        ModuleSpace space = getModuleSpace();
        if (space != null) {
            space.dispose();
        }
    } catch (Throwable e) {
        ReflectionUtils.propagate(e);
    }
    System.gc();
    System.runFinalization();
    JsValue.mainThreadCleanup();
    super.dispose();
}

From source file:com.google.gdt.eclipse.designer.moz.BrowserShellLinux.java

License:Open Source License

@Override
public void dispose() {
    // force disposing any pending JsValue instances
    JsValue.mainThreadCleanup();/*from   www.ja  va  2 s . co  m*/
    System.runFinalization();
    System.gc();
    System.runFinalization();
    System.gc();
    try {
        ModuleSpace space = getModuleSpace();
        if (space != null) {
            space.dispose();
        }
    } catch (Throwable e) {
        ReflectionUtils.propagate(e);
    }
    m_shell.dispose();
    super.dispose();
}

From source file:com.google.gdt.eclipse.designer.webkit.BrowserShellWebKit.java

License:Open Source License

@Override
public void dispose() {
    // force disposing any pending JsValue instances
    JsValue.mainThreadCleanup();/*from   ww w. ja v a  2 s  .  c  o  m*/
    try {
        ModuleSpace space = getModuleSpace();
        if (space != null) {
            space.dispose();
        }
    } catch (Throwable e) {
        ReflectionUtils.propagate(e);
    }
    super.dispose();
    impl.dispose();
}