Community
Participate
Working Groups
The getSectionGradientImage in org.eclipse.ui.internal.forms.widgets.FormImages has code to cache created gradient images, but this does not work because the equals method of the nested private class SimpleSectionImageDescriptor is not implemented properly. The method should check whether the parameter is instance of SimpleSectionImageDescriptor and not SimpleImageDescriptor. I think this is a copy&paste error. I have written a JUnit test to check for this problem and provided a improved version of FormImages to correct this problem. This fix is also needed to fix Bug 510228
I have made some performance tests and this patch improves the performance of resize operations on a simple shell with a form and a section by approximately 13%.
New Gerrit change created: https://git.eclipse.org/r/89292/
Gerrit change https://git.eclipse.org/r/89292 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=947da1ec54e12be2b88c828c02c5d978b40eb8a4
Thanks Ralf. Looks good to me, all Unit tests except FormColorsTests are green. FormColorsTests fails already before this patch.