Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TrayItem


    }

  private void createTrayNotifier() {
    tray = parent.getDisplay().getSystemTray();
       
        trayItem = new TrayItem(tray, SWT.TRANSPARENCY_ALPHA);
        trayItem.setImage(new Image(parent.getDisplay(), "img/icoKey.png"));

        String message = "Esta copia do Gerente Digital vai expirar em "+ Anakin.getInstance().getTheForceFoneTime() +" dias. \nClique aqui para ativar na internet.";
        trayItem.setToolTipText(message);
       
View Full Code Here


    }
   
  private void createTrayNotifier() {
    Tray tray = parent.getDisplay().getSystemTray();
       
        TrayItem trayItem = new TrayItem(tray, SWT.TRANSPARENCY_ALPHA);
        trayItem.setImage(new Image(parent.getDisplay(), "img/at.png"));

        String message = "Existem novas atualiza��es do Gerente Digital\n disponiveis para download.";
        trayItem.setToolTipText(message);
       
        final ToolTip tip = new ToolTip(parent.getShell(), SWT.BALLOON | SWT.ICON_INFORMATION);
      tip.setMessage(message);
      tip.setText("Atualiza��o do Gerente Digital.");
      trayItem.setToolTip(tip);
      tip.setVisible(true);
       
        trayItem.addListener (SWT.Selection, new Listener () {
            public void handleEvent (Event event) {
                new UpdateUI(information.getUpdateList());
            }
        });
View Full Code Here

    }

    private void createTrayIcon() {
        tray = display.getSystemTray();
       
        trayItem = new TrayItem(tray, SWT.TRANSPARENCY_ALPHA);
        trayItem.setToolTipText("Gerente Digital Server 2.0");
        trayItem.setImage(new Image(display, "img/icoServer.png"));
        trayItem.addListener (SWT.MenuDetect, new Listener () {
            public void handleEvent (Event event) {
                menu.setVisible (true);
View Full Code Here

      public void widgetSelected(SelectionEvent e) {
        exit();
      }
    });

    systemTrayItem = new TrayItem(systemTray, SWT.NONE);
    InputStream is = JdtUI.class.getClassLoader().getResourceAsStream(
        "resource/logo.png");
    img = new Image(Display.getDefault(), is);

    systemTrayItem.setImage(img);
View Full Code Here

    });
  }

  private TrayItem initTaskItem(IWorkbenchWindow window) {
    final Tray tray = window.getShell().getDisplay().getSystemTray();
    TrayItem trayItem = new TrayItem(tray, SWT.NONE);
    trayImage = AbstractUIPlugin.imageDescriptorFromPlugin(
        "de.toaot", "/icons/16-16/logo.png")
        .createImage();
    trayItem.setImage(trayImage);
    trayItem.setToolTipText("ToaoT\nThe one and only Twitter client");
    return trayItem;

  }
View Full Code Here

    return tabFolderPage;
  }

  void createTrayItem() {
    if (trayItem == null) {
      trayItem = new TrayItem(tray, SWT.NONE);
      trayItem.setImage(instance.images[ControlExample.ciTarget]);
    }
  }
View Full Code Here

                                    System.out.println("AZCVSUpdater trying to add a second tray item for the same thing! -- cancelling action");
                                    return;
                                }
                            }
                           
                            final TrayItem ti = new TrayItem(tray, SWT.NONE);
      
                            ti.setImage(ImageRepository.getImage("new_cvs"));
                            ti.setVisible(true);
                            ti.setToolTipText(Tab1_Subtab_1.version + " available (double click to remove alert)");
                            ti.addListener(SWT.DefaultSelection, new Listener()
                            {
                                public void handleEvent(Event e)
                                {
                                    ti.dispose();
                                }
                            });
                        }
                    });
       
View Full Code Here

            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)");
                            azcvs_trayitem.addListener(SWT.DefaultSelection, new Listener()
View Full Code Here

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

    /* Create Item in Tray */
    fTrayItem = new TrayItem(tray, SWT.NONE);
    fTrayItem.setToolTipText("RSSOwl"); //$NON-NLS-1$
    fTrayEnabled = true;

    if (Application.IS_WINDOWS)
      fTrayItem.setVisible(false);
View Full Code Here

  }

  private TrayItem createTrayItem(final Tray tray, final String text, final int icon) {
    return UIThreadRunnable.syncExec(new WidgetResult<TrayItem>() {
      public TrayItem run() {
        TrayItem trayItem = new TrayItem(tray, SWT.NONE);
        trayItem.setText(text);
        trayItem.setToolTipText(text);
        trayItem.setImage(display.getSystemImage(icon));
        if (text == "Tray Item 3") {
          trayItem.addListener(SWT.MenuDetect, popupMenu);
        }
        return trayItem;
      }
    });
  }
View Full Code Here

TOP

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

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.