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
public void layout(Composite composite, boolean force) {
			Rectangle rect = composite.getClientArea();
			Control[] children = composite.getChildren();
			for (int i = 0; i < children.length; i++) {
				children[i].setSize(rect.width, rect.height);
			}
		}
	}
	
	private static String lastPreferenceId = null;
	public static final String PREF_DLG_IMG_TITLE_ERROR = DLG_IMG_MESSAGE_ERROR; 
	/**
	 * Title area fields
	 */
	public static final String PREF_DLG_TITLE_IMG = "preference_dialog_title_image"; 
	static {
		ImageRegistry reg = JFaceResources.getImageRegistry();
		reg.put(PREF_DLG_TITLE_IMG, ImageDescriptor.createFromFile(PreferenceDialog.class, "images/pref_dialog_title.gif")); 
	}
	/**
	 * The Cancel button.
	 */
	private Button cancelButton;
	/**
	 * The current preference page, or <code>null</code> if
	 * there is none.
	 */
	private IPreferencePage currentPage;
	private String errorMessage;
	private Color errorMsgAreaBackground;