Package org.eclipse.swt.widgets

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


          Event e = new Event();
          e.item = (TreeItem) label.getData("_TREEITEM");
          chanList.setSelection((TreeItem) e.item);
          if (e.item != null && e.item.getData() != null)
            switchComposite((Room) e.item.getData());
          shell.dispose();
          chanList.setFocus();
          break;
        case SWT.MouseExit:
          shell.dispose();
          break;
View Full Code Here


            switchComposite((Room) e.item.getData());
          shell.dispose();
          chanList.setFocus();
          break;
        case SWT.MouseExit:
          shell.dispose();
          break;
        }
      }
    };
View Full Code Here

        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
            }
        }
        shell.dispose();
    }
   
    /**
     * Clears the parameter values of the operation
     */
 
View Full Code Here

            if (!display.readAndDispatch())
            {
                display.sleep();
            }
        }
        shell.dispose();
    }
   
    public static Shell createPopupShell(String title, int width, int height)
    {
        Display display = Display.getCurrent();
View Full Code Here

      bw.onFirstShown();
      succeeded = true;
      return bw;
    } finally {
      if (!succeeded) {
        s.dispose();
      }
    }
  }

  /**
 
View Full Code Here

      tracker.setEnabled(false);
      assertEquals(0, tracker.getData().size());

    } finally {
      if (shell != null) {
        shell.dispose();
      }
    }
  }

  @Test
View Full Code Here

        Shell shell = dialog.getShell();
        Point curLoc = shell.getLocation();
        shell.setLocation(curLoc.x, curLoc.y - 100);
        if (curLoc.y - 100 < 0) {
          activeShells.remove(shell);
          shell.dispose();
        }
      }
    }
   
    Rectangle clientArea = parent.getMonitor().getClientArea();
View Full Code Here

    button.setText(resource.getLabel("remove.path.yes_to_all"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = YES_TO_ALL;
        shell.dispose();
      }     
    });   
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
View Full Code Here

    button.setText(resource.getLabel("remove.path.yes"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = YES;
        shell.dispose();
      }     
    });
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
View Full Code Here

    button.setText(resource.getLabel("remove.path.no"));
    button.addSelectionListener(new SelectionAdapter(){
      @SuppressWarnings("unused")
      public void widgetSelected(SelectionEvent evt) {
        type  = NO;
        shell.dispose();
      }     
    });
    button.setFont(UIDATA.FONT_9);
   
    button = new Button(bottom, SWT.PUSH);
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.