System tray icon not working in 3.7 on MAc? [message #693367] |
Wed, 06 July 2011 10:37 |
Richard Adams Messages: 77 Registered: July 2009 Location: Edinburgh |
Member |
|
|
Hello
We recently updated our RCP to compile off Eclipse 3.7, previously it was compiling off 3.5. We've noticed that on MAcOSX10.5 and 10.6, the system tray icon no longer appears, using the standard code called from postWindowOpen()
final Tray tray = window.getShell().getDisplay().getSystemTray();
if(tray!=null){
trayItem = new TrayItem(tray, SWT.NONE);
trayImage = AbstractUIPlugin.imageDescriptorFromPlugin(
"uk.ac.ed.csbe.sbsivisual.product", "/icons/alt_about.gif")
.createImage();
trayItem.setImage(trayImage);
trayItem.setToolTipText("TrayItem");
}
return trayItem;
When I run this through the debugger, the code is called, and the icon set properly. However subsequently it reverts to the default java icon, somewhere in the Workbench.runUI() method. Is anyone aware of a workaround for this?
Thanks,
Richard
Dr Richard Adams, University of Edinburgh
http://richardadams606blog.blogspot.com/
http://csbe.bio.ed.ac.uk/adams.php
|
|
|
|
Powered by
FUDForum. Page generated in 0.03055 seconds