Package org.eclipse.swt.widgets

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


    btnCancel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
    btnCancel.setText("cancel");
   
    shell.pack();
    new Label(shell, SWT.NONE);
    shell.open();

    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
View Full Code Here


      Display display = Display.getDefault();
      Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
      shell.setText("Included types");
     
      SelectTypesDialog dialog = new SelectTypesDialog(shell, types, composite.getSelectedTypes());
      shell.open();
      while (!shell.isDisposed()) {
        if (!display.readAndDispatch())
          display.sleep();
      }
      List<String> selectedTypes = dialog.getSelectedTypes();
View Full Code Here

    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select excluded types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getExcludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
View Full Code Here

    }
    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select included types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getIncludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
View Full Code Here

    control.createControl(mainWindow);
   
      mainWindow.setText("SWT");
      mainWindow.setSize(300, 200);
      mainWindow.open();
   
   
      while(!mainWindow.isDisposed())
      {
        if(!display.readAndDispatch())
View Full Code Here

          text.setText(event.item + " was selected");
        }
      }
    });

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    display.dispose();
View Full Code Here

      table.getColumn(i).pack();
    }

    table.setSize(table.computeSize(SWT.DEFAULT, 200));
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    display.dispose();
View Full Code Here

      folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      shell.layout(true);
    }
  });
  shell.setSize(300, 300);
  shell.open ();
  while (!shell.isDisposed ()) {
    if (!display.readAndDispatch ()) display.sleep ();
  }
  image.dispose();
  display.dispose ();
View Full Code Here

    long t2 = System.currentTimeMillis();
    System.out.println("Items: " + COUNT + ", Time: " + (t2 - t1) + " (ms) [page=" + PAGE_SIZE
        + "]");
    shell.layout();
    shell.pack();
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    display.dispose();
View Full Code Here

    styledText.setCaretOffset(styledText.getCharCount() + 1);
   
   
    styledText.setBounds(10,10,100,100);
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
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.