How to set icon for progress job's group? [message #491369] |
Wed, 14 October 2009 07:08  |
Eclipse User |
|
|
|
Hi,
I have a few jobs set in the one group.
The code for creating group looks like:
IJobManager manager = Job.getJobManager();
IProgressMonitor monitor = manager.createProgressGroup();
monitor.beginTask("Configuration", 20); // start group progress
Then I have implemented Job#belongsTo(Object family) method for each of my
job and the Job#setProgressGroup(...).
The job and progress view are executing fine, but the problem is the group
icon (it is the yellow dot) that I cannot change.
I have tried to set the icon for each of my jobs (using setProperty(...))
but it does not work when the job is assigned to group, however when the job
is run standalone, outside group the icon set is appeared.
Also, I have to use the following method to define icon to group level:
PlatformUI.getWorkbench().getProgressService().registerIconF orFamily(ImageDescriptor
icon, Object family) but it doesn't work.
Note that I am using default (eclipse) progress view.
Please tell me how to handle this...
Regards,
DL
|
|
|
|
|
|
|
Re: How to set icon for progress job's group? [message #491571 is a reply to message #491375] |
Thu, 15 October 2009 02:53  |
Eclipse User |
|
|
|
Prakash G.R. wrote:
> DL wrote:
>> IJobManager manager = Job.getJobManager();
>>
>> IProgressMonitor monitor = manager.createProgressGroup();
>
>> The job and progress view are executing fine, but the problem is the
>> group icon (it is the yellow dot) that I cannot change.
>
>
> The icon for the progressgroup is not configurable.
You can configure the icon for a job family:
org.eclipse.ui.progress.IProgressService.registerIconForFami ly(ImageDescriptor,
Object).
Dani
> You need to raise an enhancement request if you want.
>
>
> - Prakash
>
> Platform UI Team, IBM
> http://blog.eclipse-tips.com
|
|
|
Powered by
FUDForum. Page generated in 0.05328 seconds