Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TrayItem


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

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

    if (Application.IS_WINDOWS)
      fTrayItem.setVisible(false);
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");
    fTrayEnabled = true;

    if (Application.IS_WINDOWS)
      fTrayItem.setVisible(false);
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

      // #ifdef DEBUG
      log.error("The system tray is not available");
      // #endif
    } else {
      // Create the icon
      trayItem = new TrayItem(tray, SWT.NONE);
      trayItem.setToolTipText(Messages.getString("GUI.appName"));
      trayItem.addListener(SWT.Show, new Listener() {
        public void handleEvent(Event event) {
        }
      });
View Full Code Here

        //execute.setToolTipText("Run the command on the left (or press enter).");
        execute.setText("Parse Command");

        Tray tray = display.getSystemTray();
        if(tray != null) {
            itray = new TrayItem(tray, SWT.NONE);
            itray.setToolTipText("No");
            itray.setImage(smlcon);
        }
       
        //shell.setImage(iconb);
View Full Code Here

    if (tray == null) {
      System.err.println("The system tray is not available");
      tip.setText("Notification from anywhere");
      tip.setLocation(400, 400);
    } else {
      item = new TrayItem(tray, SWT.NONE);
      item.setImage(image);
      item
          .setToolTipText("indic-keyboards\nDouble click to visit homepage");

      tip.setText("indic-keyboards");
View Full Code Here

  public void setShell(Shell shell) {
    _shell = shell;
  }
 
  private TrayItem createTrayItem(String toolTip, Image image) {
    TrayItem result = new TrayItem(Display.getDefault().getSystemTray(), SWT.NONE);
    result.setToolTipText(toolTip);
    result.setImage(image);
    return result;
  }
View Full Code Here

  public void openTrayIcon() {
    final Tray tray = PlatformUI.getWorkbench().getDisplay().getSystemTray();
    if(tray == null) {
      logger.finest("System tray not available."); return;
    }
    trayItem = new TrayItem(tray,SWT.NONE);
    trayItem.setToolTipText("Gamers Own Instant Messenger");
    trayItem.setImage(GOIMIcons.getImage(GOIMIcons.TRAY_ICON_DEFAULT));

    final MenuManager trayMenu = new MenuManager("TrayMenu");
    trayMenu.createContextMenu(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
View Full Code Here

   * Initializes the tray icon.
   */
  private static void initTray() {
    Tray sysTray = main.getDisplay().getSystemTray();
    if (sysTray != null) {
      TrayItem item = new TrayItem(sysTray, SWT.NONE);
      item.setToolTipText(KEllyBot.VERSION);
      try {
        Image image = new Image(main.getDisplay(), "icon.png");
        item.setImage(image);
      } catch (Exception e) {
        Logger log = Logger.getLogger("logs.init");
        log.log(Level.WARNING, "icon.png not found");
      }
      item.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetDefaultSelected(SelectionEvent arg0) {
        }

View Full Code Here

    }
   
  private void createTrayNotifier() {
    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 disponiveis para download. \nPara maiores informa��es clique aqui.";
        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

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.