Feb 04 2009

Eclipse Jobs API – Errata

Published by at 6:19 pm under Eclipse,IT,Java

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

4 responses so far

4 Responses to “Eclipse Jobs API – Errata”

  1. Łukasz Milewskion 04 Feb 2009 at 6:40 pm

    And you don’t need KEEP_PROPERTY to show icon, ICON_PROPERTY is sufficient

  2. Radoslaw Urbason 04 Feb 2009 at 6:43 pm

    You are right. KEEP_PROPERTY is there in the code for other purposes than icons.

  3. marioModelon 06 Feb 2009 at 11:36 am

    Thank you so much Lukasz… I love you guys… You’re the best!

  4. bus wisata v transon 17 Aug 2015 at 9:11 pm

    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.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.