JFace下ApplicationWindow关闭窗口时结束进程

/**
     * Configure the shell.
     * @param newShell
     */
    @Override
    protected void configureShell(Shell newShell) {
        super.configureShell(newShell);
        newShell.addListener(SWT.Close, new Listener() { 
            public void handleEvent(Event event) {
                System.exit(0);
            }

        });
    }

创建Window后修改重写的configureShell方法

原文地址:https://www.cnblogs.com/GYoungBean/p/3156064.html