Package org.eclipse.swt.widgets

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


   
    dialog.setBlockOnOpen(true);
    if( !l.finished )
    dialog.open();
    if (!shell.isDisposed())
      shell.dispose();
   
    assertTrue(l.state1);
    assertTrue(l.state2);
    assertTrue(l.state3);
    assertTrue(!l.state4)
View Full Code Here


                Shell shell = (Shell) shellsWithActivateListener.pop();
                if (!shell.isDisposed())
                    shell.removeListener(SWT.Activate, activateListener);
            }
        }
        shell.dispose();
    }

    public static void unblock() {
        assert blockCount >= 0;
        assert Display.getCurrent() != null// On SWT event thread
View Full Code Here

        frame.addWindowListener(new WindowAdapter() {
            public void windowClosed(WindowEvent e) {
                if (!display.isDisposed()) {
                    ThreadingHandler.getInstance().asyncExec(display, new Runnable() {
                        public void run() {
                            shell.dispose();
                        }
                    });
                }
            }
        });
View Full Code Here

  button.addSelectionListener(new SelectionListener() {
    public void widgetDefaultSelected(SelectionEvent e) {
    }
   
    public void widgetSelected(SelectionEvent e) {
      aboutWin.dispose();
      onFocusItemOnClose.setFocus();
    }
  });
  aboutWin.setSize(600, 270);
  aboutWin.open();
View Full Code Here

          else
            {
            XCDERegisterProvider.getProvider().changeRegister(null);
            }
          dispose();
          s.dispose();
          }
        });
   
    //close the dialog on cancel
    Button cancel = new Button(controls,SWT.CENTER);
View Full Code Here

          public void handleEvent(Event e)
            {
            if (serverList.getSelectionIndex() == -1)
              XCDERegisterProvider.getProvider().changeRegister(null);
            dispose();
            s.dispose();
            }
          });
   
    //get the widgets to organize themselves
    controls.pack();
View Full Code Here

   */
  public void close() {
    Shell shell = table.getShell();

    if (shell != null && !shell.isDisposed())
      shell.dispose();
  }

  /**
   * @return currently selected item
   */
 
View Full Code Here

        int x = (displayRect.width - splashRect.width) / 2;
        int y = (displayRect.height - splashRect.height) / 2;
        shell.setLocation(x, y);
        shell.open();
        Thread.sleep(5000);
        shell.dispose();
    }

    public AnimatedGif(Composite composite, int i) {
        super(composite, i);
    }
View Full Code Here

                    log.warn("Forced a hard beforeClose of loading task '"+tasks[i].getName()+"'");
                    tasks[i].stop();
                }
            }
        }
        shell.dispose();
    }

    public CancelableLoadingSplash(Composite c, int style) {
        super(c, style);
        setLayout(new FormLayout());
View Full Code Here

            if (!display.readAndDispatch())
            {
                display.sleep();
            }
        }
        shell.dispose();
    }
   
    /**
     * Listener class for table tooltip label
     */
 
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.