Community
Participate
Working Groups
Section header gradients will be shared globally as a result of bug 200690. Similar support should be added for FormHeading.
I'm watching you Adam :)
Created attachment 77960 [details] patch Added support to FormImages to create the gradients for FormHeading. These gradients are created differently and use different parameters, so another getter was added with a different signature. Expanded the JUnit tests for FormImages to include the new functionality. Also modified markFinished(Image) to dispose of the image if it was not found in the HashMaps. This is because under some circumstances the gradientImage in FormHeading does not come from FormImages (if it's user defined). In this case we do not need to worry about that difference as FormImages will dispose of it for us.
I got a compilation error when I applied the patch: Severity and Description Path Resource Location Creation Time Id The method hashCode() in the type Object is not applicable for the arguments (int[]) org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets FormImages.java line 135 1189441278243 2760 I'm compiling using the Java 1.4 compliance level.
Created attachment 78001 [details] patch Oops... I didn't realize that was 1.5 code. Fixed.
Fix committed to HEAD.
*** Bug 208117 has been marked as a duplicate of this bug. ***