Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » System tray icon not working in 3.7 on MAc?
System tray icon not working in 3.7 on MAc? [message #693367] Wed, 06 July 2011 10:37 Go to next message
Richard Adams is currently offline Richard AdamsFriend
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




Re: System tray icon not working in 3.7 on MAc? [message #693447 is a reply to message #693367] Wed, 06 July 2011 13:47 Go to previous message
Richard Adams is currently offline Richard AdamsFriend
Messages: 77
Registered: July 2009
Location: Edinburgh
Member
Sorry this problem just happens when running in the IDE, the deployed product works fine, so it's not as much of a problem as first thought.

Previous Topic:Resources manager
Next Topic:Problems during export of a product
Goto Forum:
  


Current Time: Tue Nov 30 02:10:04 GMT 2021

Powered by FUDForum. Page generated in 0.01911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top