Bug 202316 [Forms] Add gradient sharing support for FormHeading
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/internal/forms/widgets/FormImages.java
}
	private void checkHashMaps() {
		if (images == null)
			images = new HashMap();
		if (ids == null)
			ids = new HashMap();
	}
	
	private void validateHashMaps() {
		if (images.size() == 0)
			images = null;
		if (ids.size() == 0)
			ids = null;
	}
	
	private Image createGradient(Display display, Color color1, Color color2,
			int realtheight, int theight, int marginHeight) {
		Image image = new Image(display, 1, realtheight);
		image.setBackground(color1);
		GC gc = new GC(image);
		gc.setBackground(color1);
		gc.fillRectangle(0, 0, 1, realtheight);
		gc.setForeground(color2);
		gc.setBackground(color1);
		gc.fillGradientRectangle(0, marginHeight + 2, 1, theight - 2, true);
		gc.dispose();
		return image;
	}
}