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
LikeLike
You are right. KEEP_PROPERTY is there in the code for other purposes than icons.
LikeLike
Thank you so much Lukasz… I love you guys… You’re the best!
LikeLike
I think the admin of this web page is truly working hard for his
website, for the reason that here every information is quality based material.
LikeLike