Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Since you can build a <code>TrayItem</code> around the <code>SystemTray</code> from any windows:</p> <pre><code>final Tray tray = window.getShell().getDisplay().getSystemTray(); TrayItem trayItem = new TrayItem(tray, SWT.NONE); </code></pre> <p>, do you have to access <em>that</em> <code>TrayItem</code> instance from <code>ApplicationWorkbenchWindowAdvisor</code>?</p> <p>You could put it in a more accessible class or even build one where and when you need it.</p> <hr> <p>Speaking of showing percentage while doing lengthy operations, I just wanted to mentioned the latest tasks icons <a href="http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/eclipse-news-M6.html" rel="nofollow noreferrer">improvements in Eclipse3.6M6</a> (not system tray, but related at they now can provide a good status indicator). See <a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet336.java?view=co" rel="nofollow noreferrer">Snippet 336</a> for an example.</p> <ul> <li>TaskItem overlay image </li> </ul> <blockquote> <p>The new API <code>TaskItem#setOverlayImage(Image)</code> allows clients to set an image to be displayed on top of the application button in the taskbar. </p> </blockquote> <p><a href="http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlayimage.png" rel="nofollow noreferrer">alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlayimage.png</a></p> <ul> <li>TaskItem overlay text </li> </ul> <blockquote> <p>The new API <code>TaskItem#setOverlayText(String)</code> allows clients to set a short text to be displayed on top of the application button in the taskbar. </p> </blockquote> <p><a href="http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlaytext.png" rel="nofollow noreferrer">alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlaytext.png</a></p> <ul> <li>TaskItem progress </li> </ul> <blockquote> <p>The new APIs <code>TaskItem#setProgress(int)</code> and <code>TaskItem#setProgressState(int)</code> allows clients to show progress indication in the application button in the taskbar.</p> </blockquote> <p><a href="http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/progress.png" rel="nofollow noreferrer">alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/progress.png</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload