I am using the Eclipse RCP trayitem, which is described in Vogellas tutorials.
The requirement now is not only to show the name of the app in the tooltip but also a percentage while doing lengthy operations.
I understand that the trayitem attribute is a private from ApplicationWorkbenchWindowAdvisor, so I added a getter and setter method.
The only thing missing is a possibility to access the trayitem instance from my ProgressMonitorDialog instance.
Can you tell me, how you would solve this puzzle?
Thanks
Since you can build a
TrayItemaround theSystemTrayfrom any windows:, do you have to access that
TrayIteminstance fromApplicationWorkbenchWindowAdvisor?You could put it in a more accessible class or even build one where and when you need it.
Speaking of showing percentage while doing lengthy operations, I just wanted to mentioned the latest tasks icons improvements in Eclipse3.6M6 (not system tray, but related at they now can provide a good status indicator). See Snippet 336 for an example.
alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlayimage.png
alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/overlaytext.png
alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/progress.png