Feb 04 2009
Eclipse Jobs API – Errata
My colleague Lukasz Milewski has just spotted a missing piece in a code sample for creating icons presented in previous post. In the screenshot you can see nice icons for currently running Jobs as well as for scheduled Jobs. You need to set two properties in your Job implementation to associate an icon with it.
setProperty(IProgressConstants.KEEP_PROPERTY, Boolean.TRUE); setProperty(IProgressConstants.ICON_PROPERTY, ImageDescriptorFactory .createImageDescriptor(ICON_NAME));
And you don’t need KEEP_PROPERTY to show icon, ICON_PROPERTY is sufficient
You are right. KEEP_PROPERTY is there in the code for other purposes than icons.
Thank you so much Lukasz… I love you guys… You’re the best!