Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Tray


        if(View.getDisplay() != null && !View.getDisplay().isDisposed()){
            View.getDisplay().asyncExec(new Runnable ()
                    {
                        public void run ()
                        {  
                            Tray tray = View.getDisplay().getSystemTray();
                           
                            TrayItem[] trayItems = tray.getItems();
                            for(int i = 0; i < trayItems.length; i++){
                                if(trayItems[i].getToolTipText().equalsIgnoreCase(Tab1_Subtab_1.version + " available (double click to remove alert)")){
                                    System.out.println("AZCVSUpdater trying to add a second tray item for the same thing! -- cancelling action");
                                    return;
                                }
View Full Code Here


        if(View.getDisplay() != null && !View.getDisplay().isDisposed()){
            View.getDisplay().asyncExec(new Runnable ()
                    {
                        public void run ()
                        {  
                            Tray tray = View.getDisplay().getSystemTray();
                            azcvs_trayitem = new TrayItem(tray, SWT.NONE);
                           
                            azcvs_trayitem.setImage(ImageRepository.getImage("azcvsupdater"));
                            azcvs_trayitem.setVisible(true);
                            azcvs_trayitem.setToolTipText("AZCVSUpdater version " + version + " available (double click to remove alert)");
View Full Code Here

    if (primaryWindow == null || !primaryWindow.equals(getWindowConfigurer().getWindow()))
      return false;

    final Shell shell = primaryWindow.getShell();
    final int doubleClickTime = shell.getDisplay().getDoubleClickTime();
    final Tray tray = shell.getDisplay().getSystemTray();

    /* Tray not support on the OS */
    if (tray == null)
      return false;

View Full Code Here

                              SWTBotTrayItemTest.this.menuSelected = true;
                            }
                          };

  private Tray getSystemTray() {
    Tray tray = UIThreadRunnable.syncExec(new WidgetResult<Tray>() {
      public Tray run() {
        return display.getSystemTray();
      }
    });
    if (tray == null) {
View Full Code Here

      }
    });
  }

  private void destroyTrayItems() {
    final Tray tray = getSystemTray();
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        tray.dispose();
      }
    });

  }
View Full Code Here

  private int imageActive;
  private Timer timer;
  private boolean isBusy;

  public SystemTrayItem(final GuiController guiController) {
    Tray tray = guiController.getDisplay().getSystemTray();
    this.trayItem = new TrayItem(tray, SWT.NULL);

    imageList = new Image[2];
    imageList[0] = guiController.getImage("fullsync48.png"); //$NON-NLS-1$
    imageList[1] = guiController.getImage("fullsync48_r.png"); //$NON-NLS-1$
View Full Code Here

  /**
   * @return The single instance of the system tray
   */
  protected Tray systemTray() {
    Tray tray = syncExec(SWTUtils.display(), new WidgetResult<Tray>() {
      public Tray run() {
        return SWTUtils.display().getSystemTray();
      }
    });
    if (tray == null) {
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Tray

Copyright © 2018 www.massapicom. 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.