Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell.open()


        shell.setDefaultButton(okButton);
        shell.pack();
        ViewUtility.centerChildInParentShell(parent, shell);
       
        shell.open();
    }
   
    private void deleteUsers()
    {
        int selectionIndex = _table.getSelectionIndex();
View Full Code Here


                            dialog.close();
                        }
                    } );
                    dialog.setDefaultButton( ok );
                    dialog.pack();
                    dialog.open();
                }
            } );

            control.layout();
View Full Code Here

           
            if (CREATE_POPUP_PARENT_SHELL) {
                // Display the created parent shell at the current cursor location
                // System.err.println("*** opening popup parent" + display.getCursorLocation());
                popupParent.setLocation(display.getCursorLocation());
                popupParent.open();
                // The menu is made visible in the listener above
            }
            if (!DELAY_MOUSE_DOWN_SWT_POPUP_TRIGGERS) {
                // If we are not waiting for MouseEnter, then open the menu right here
                menu.setVisible(true);
View Full Code Here

        } 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()) {
            if (!display.readAndDispatch()) {
                display.sleep();
View Full Code Here

    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());
   
    new ParameterListBuilderPage("Testing").createControl(shell);
   
    shell.open();
   
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
View Full Code Here

       
        new ListBuilder(shell, new ParameterBuilderDelegate(shell))
                .getPanel().setLayoutData(gridData);
       
        shell.setSize(800, 600);
        shell.open();
       
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch())
                display.sleep();
        }
View Full Code Here

      aboutWin.dispose();
      onFocusItemOnClose.setFocus();
    }
  });
  aboutWin.setSize(600, 270);
  aboutWin.open();
}

}
View Full Code Here

  makeTextEditor(topRow);
  makeExecuteButton(topRow);
 
  makeTableCells(sash);
  new DataStormMenu(this, controller, editor).makeMenu(mainWindow);
  mainWindow.open();
  return mainWindow;
}

public void dialogOK(String title, String message) {
  Shell shell = new Shell(display);
View Full Code Here

   
    //get the widgets to organize themselves
    controls.pack();
    top.pack();
    s.pack();
    s.open();
   
    //make this dialog blocking so that we don't get by-passed
    //this is vital so the link operation works
    Display display = getParent().getDisplay();
    while (!s.isDisposed())
View Full Code Here

  Shell shell = new Shell(display);
  LogMessageView x = new LogMessageView();
  x.createPartControl(shell);

  shell.pack();
  shell.open();

  // Set up the event loop.
  while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
    // If no more entries in event queue
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.