Image[] images = { logo512, logo256, logo48, logo32, logo16 };
shell.setSize(400, 250);
shell.setMinimumSize(400, 250);
shell.setImages(images);
Application appComposite = new Application(shell, SWT.None);
shell.open();
while (!shell.isDisposed()) {
if (!shell.getDisplay().readAndDispatch()) {
shell.getDisplay().sleep();
}
}
appComposite.dispose();
shell.dispose();
} catch (Exception e) {
e.printStackTrace();
ErrorUtil.openStackTraceDialog("A Fatal Error has occured and the application will need to shut down", e);
System.exit(1);