Community
Participate
Working Groups
We should provide support for animated gifs in tab items. It is unclear whether or not we should just implement this in the presentations of if we should make it more widely available via API in workbench or JFace (we would need to use the workbench if it relies on Jobs).
I have done a preliminary implementation. To see this STEPS 1) Load org.eclipse.ui and org.eclipse.ui.workbench from head 2) Self host with the tracing enabled for org.eclipse.ui.workbench for entries debug and trace/graphics 3) Open the problems view and rebuild - you will see a spinner
Created attachment 48889 [details] Patch should it need to be reverses
Great work Tod, I was just giving it a try. However, I am not totally yet happy with the used image. I think usually these progress-images animate clockwise. I was experimenting with the GIF Firefox is using (find it attached). I like it very much, and its pretty much the same in iTunes as well. I was also wondering why the tabitem's label was flickering a bit. It turns out that every call to setImage() on a CTabItem causes the entire tabitem to redraw, including the label (See Bug 166264 for more details). Fixing Bug 166264 and using the other icon, I made a small flash-video on how its looking now over at my pc: http://www.rssowl.org/dl/anim_tab.html Would be awesome to see this in M4 :) Ben
Created attachment 54748 [details] Firefox Progress animated GIF
A, forgot to mention. In order to have a smooth, not too fast animation for the GIF I was using, I had to increase the sleep() in AnimatedTabItem to 100. I know that the SWT Snippet for animated GIF suggests to use imageData.delayTime, but for some reason the GIF I was using did not return any other value than 0. I guess thats something that is easy to define in an application like photoshop or else. Ben
I will certianly turn it on when Bug 166464 is sorted. I will also get a better graphic - I just took one that we produce so as to avoid legal issues when doing this work. This is cool Ben - thanks for your work.
Great :)!
Lets try for M4
Cool. Does this mean it will be enabled by default in M4, or do I still have to enable tracing?
It will be on by default.
Fixed in build >20061130
Verified in 20061212-0100
I want to use this feature in my RCP application. How can I do?
Does this enhancement really find its way into Eclipse 3.6? I can't get a animated gif running in a View tab and I didn't find any code fragments in org.eclipse.ui.internal.presentations.util.WidgetTabItem using AnimatedTabItem or something similar as described in the patch. Could someone post whether this feature is really available and how it can be used?