capint
7/23/2015 - 3:43 PM

Eclipse >> SWT >> Display

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()