shell = (composite != null) ? composite.getShell() : null;
}
} else {
// Otherwise, restore focus to awt if the shell gets focus
// TODO: test on MacOS and Motif
shell.addFocusListener(focusListener);
}
shell.open();
Display display = shell.getDisplay();
while (!shell.isDisposed()) {