Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to set icon for progress job's group?
How to set icon for progress job's group? [message #491369] Wed, 14 October 2009 11:08 Go to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
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 #491375 is a reply to message #491369] Wed, 14 October 2009 11:48 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
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 need to raise
an enhancement request if you want.


- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Re: How to set icon for progress job's group? [message #491393 is a reply to message #491375] Wed, 14 October 2009 12:23 Go to previous messageGo to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Thanks for answer..
I have spent about few hours wokring on it,
so I will ceratinly report it as an enhancement request.

"Prakash G.R." <grprakash@gmail.com> wrote in message
news:hb4dpv$aa0$1@build.eclipse.org...
> 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 need to raise an
> enhancement request if you want.
>
>
> - Prakash
>
> Platform UI Team, IBM
> http://blog.eclipse-tips.com
Re: How to set icon for progress job's group? [message #491505 is a reply to message #491375] Wed, 14 October 2009 19:48 Go to previous messageGo to next message
dl is currently offline dlFriend
Messages: 33
Registered: July 2009
Member
Hi Praksash G.R.

Sorry, how did you know for this?
I ask that in order to avoid such time spending on the issues that are not
even supported in Eclipse?
If you have some good advise, please respond..

Regards,
DL

"Prakash G.R." <grprakash@gmail.com> wrote in message
news:hb4dpv$aa0$1@build.eclipse.org...
> 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 need to raise an
> enhancement request if you want.
>
>
> - Prakash
>
> Platform UI Team, IBM
> http://blog.eclipse-tips.com
Re: How to set icon for progress job's group? [message #491565 is a reply to message #491505] Thu, 15 October 2009 04:40 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
DL wrote:

> Sorry, how did you know for this?

ProgressInfoItem.getInfoImage() returns the image to be displayed in
the Progress View. You need to look into that code. First few lines
returns the default image for the progress group.

> I ask that in order to avoid such time spending on the issues that are not
> even supported in Eclipse?

I'm maintaining the Progress code, so it was easier to spot the place.
If you want to find it yourself, you can use the PDE spy to find the
view class and then dig into that code. Alternatively, you can post in
this forum. We are watching the forum and we will help you :-)

- Prakash

Platform UI Team, IBM
http://blog.eclipse-tips.com
Re: How to set icon for progress job's group? [message #491571 is a reply to message #491375] Thu, 15 October 2009 06:53 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
Previous Topic:Very short running jobs inside progress group are not shown appropriately in progress view
Next Topic:Editor having a child editor
Goto Forum:
  


Current Time: Fri Apr 26 11:58:17 GMT 2024

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

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

Back to the top