Bug 200690 [Forms] Investigate resource sharing for section header gradients
From Andre: While doing some handle/memory leak tracking, we found that every section header allocates an image for the gradient. Since we use quite a few section headers in the work item editor, it would bring our handle count down if the images could be shared. In addition we would like to share the FormToolkit (since it allocates resources that can be shared too).
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/forms/widgets/Section.java
bounds.width - marginWidth - 2, marginHeight + 2,
					bounds.width - marginWidth - 2,
					marginHeight + gradientheight - 1 });
		}
		if (buffer != null) {
			gc.dispose();
			e.gc.drawImage(buffer, 0, 0);
			buffer.dispose();
		}
	}
	private void updateHeaderImage(Color bg, Rectangle bounds, int theight,
			int realtheight) {
		Image image = new Image(getDisplay(), 1, realtheight);
		image.setBackground(getBackground());
		GC gc = new GC(image);
		gc.setBackground(getBackground());
		gc.fillRectangle(0, 0, 1, realtheight);
		gc.setForeground(bg);
		gc.setBackground(getBackground());
		gc.fillGradientRectangle(0, marginHeight + 2, 1, theight - 2, true);
		gc.dispose();
		super.setBackgroundImage(image);
	}
	/**
	 * Background image is used for the title gradient - does nothing.
	 */
	public final void setBackgroundImage(Image image) {
	}
}