Bug 48364 PreferenceDialog can reopen empty
20031209 When you close the Preferences dialog with an entry other than the default selected you will get an empty entry in the dialog when you reopen STEPS 1) Open the preferences dialog 2) Select the Appearances page 3) Close the dialog 4) Reopen - Workbench will be selected and the contents will be empty
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
* @param parent the SWT parent for the title area composite.
	 * @return the created title area composite.
	 */
	private Composite createTitleArea(Composite parent) {
		
		
		titleArea = new Composite(parent, SWT.NONE);
		GridLayout layout = new GridLayout();
		layout.marginHeight = 2;
		layout.marginWidth = 2;
		layout.verticalSpacing = 0;
		layout.horizontalSpacing = 0;
		layout.numColumns = 2;
		
		Display display = parent.getDisplay();
		Color background = JFaceColors.getBannerBackground(display);
		final Color foreground = JFaceColors.getBannerForeground(display);
		GridData layoutData = new GridData(GridData.FILL_BOTH);
		titleArea.setLayout(layout);
		titleArea.setLayoutData(layoutData);
		titleArea.setBackground(background);
		final Color borderColor = new Color(titleArea.getDisplay(), ViewForm.borderOutsideRGB);
		titleArea.addPaintListener(new PaintListener() {
			public void paintControl(PaintEvent e) {
				e.gc.setForeground(borderColor);
				Rectangle bounds = titleArea.getClientArea();
				bounds.height = bounds.height - 2;
				bounds.width = bounds.width - 1;
				e.gc.drawRectangle(bounds);
			}