Esempio n. 1
0
 /**
  * Open the dialog.
  *
  * @return the result
  */
 public void open() {
   display = Display.getDefault();
   createContents();
   shell.open();
   shell.layout();
   while (!shell.isDisposed()) {
     if (!display.readAndDispatch()) {
       display.sleep();
     }
   }
 }