import org.eclipse.swt.widgets.Display;
import org.lbchild.window.MainWindow;
import org.lbchild.window.TestWindow;

public class Main {
    public static void main(String[] args) {
        MainWindow window = new MainWindow();
        window.setBlockOnOpen(true);
        window.open();
        Display.getCurrent().dispose();
    }
}

import org.eclipse.swt.widgets.Display;
import org.lbchild.window.MainWindow;

public class Main {
    public static void main(String[] args) {
        MainWindow window = new MainWindow();
        window.setBlockOnOpen(true);
        window.open();
        Display.getCurrent().dispose();
    }
}

Update Main.java