Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Contribution and disposing tray icon in e4 application
Contribution and disposing tray icon in e4 application [message #1439693] Tue, 07 October 2014 12:08
Bartosz Popiela is currently offline Bartosz PopielaFriend
Messages: 21
Registered: March 2012
Junior Member
Hi! Wink
Im trying to contribute tray icon to my e4 based application.
In e3 application I use WorkbenchWindowAdvisor class and override
WorkbenchWindowAdvisor.postWindowOpen()
and
WorkbenchWindowAdvisor.dispose() 
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();
trayItem.setImage(trayImage);
trayItem.setToolTipText(TRAY_TOOLTIP);

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

Previous Topic:Multiple Filters To A JFACE Table
Next Topic:adding a ToolControl to TrimBar causes ClosePerspective exception
Goto Forum:
  


Current Time: Wed Jan 27 08:32:43 GMT 2021

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

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

Back to the top