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
private Control separator;
	private Hashtable titleColors;
	private static final String COLOR_BG = "bg"; 
	private static final String COLOR_GBG = "gbg"; 
	private static final String COLOR_BORDER = "border"; 
	/**
	 * Creates a new section instance in the provided parent.
	 * 
	 * @param parent
	 *            the parent composite
	 * @param style
	 *            the style to use
	 */
	public Section(Composite parent, int style) {
		this(parent, SWT.NULL, style);
	}
	Section(Composite parent, int cstyle, int style) {
		super(parent, cstyle | getBackgroundStyle(style), style);
		int rtl = cstyle & SWT.RIGHT_TO_LEFT;
		if ((style & DESCRIPTION) != 0) {
			descriptionControl = new Text(this, SWT.READ_ONLY | SWT.WRAP | rtl);
		}
		if ((style & TITLE_BAR) != 0) {
			Listener listener = new Listener() {
				public void handleEvent(Event e) {
					Image image = Section.super.getBackgroundImage();
					if (image != null)
						image.dispose();
					Section.super.setBackgroundImage(null);
				}