Im trying to contribute tray icon to my e4 based application.
In e3 application I use WorkbenchWindowAdvisor class and override
methods to contribute and dispose tray icon. In e4 app I use MyLifeCycleManager (lifeCycleURI application property) and in @ProcessAdditions annotated method I create tray icon in the following way:
Tray tray = pDisplay.getSystemTray();
trayItem = new TrayItem(tray, SWT.NONE);
Image trayImage = AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/alt_window_16.gif").createImage();
What is the correct way to create and dispose tray icon in e4 manner?
[Updated on: Tue, 07 October 2014 12:10]
Report message to a moderator