Bug 25419 [Dialogs] Can't Maximize Window: "Preferences"
Build: 200210181211 The "Preferences" window cannot be maximized since it neither has a maximize title bar button nor does the title bar respond to being double-clicked. The only work around is to reside the window manually by dragging the border. For short-lived windows this is too detail-oriented and time-consuming.
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
}
/**
 * Get the name of the selected item preference
 */
protected void setSelectedNodePreference(String pageId){
	lastPreferenceId = pageId;
}
/**
 * Get the node that was last selected in the dialog store.
 * If there is no match then return the first one,
 */
private TreeItem getLastSelectedNode(TreeItem[] items){
	String lastSelectedNode = getSelectedNodePreference();
		
	if(lastSelectedNode == null)
		return items[0];
	
	TreeItem selectedItem = findNodeMatching(items, lastSelectedNode);
	if(selectedItem == null)	
		return items[0];
	else
		return selectedItem;
}
/**
 * Find the TreeItem that has data the same id as the nodeId.
 * Search the children recursively.
 * @return TreeItem or null if not found.
 */ 
private TreeItem findNodeMatching(TreeItem[] items, String nodeId){