Eclipse >> SWT >> Display
public static Display getDisplay() {
Display display = Display.getCurrent();
//may be null if outside the UI thread
if (display == null)
display = Display.getDefault();
return display;
}
//*** Returns the currently active Shell
Display.getCurrent().getActiveShell()