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
public void widgetDefaultSelected(final SelectionEvent event) {
			TreeItem[] selection = tree.getSelection();
			if (selection.length > 0) 
				selection[0].setExpanded(!selection[0].getExpanded());
		}
	});
	
	IPreferenceNode node = preferenceManager.getRoot();
	IPreferenceNode[] subnodes = node.getSubNodes();
	tree.setFont(parent.getFont());
	for (int i = 0; i < subnodes.length; i++){
		createTreeItemFor(tree, subnodes[i]);
	}
}
/**
 * Creates a TreeItem structure that reflects to the page hierarchy.
 */
private void createTreeItemFor(Widget parent, IPreferenceNode node) {
	TreeItem item = null;
	if (parent instanceof Tree)
		item = new TreeItem((Tree) parent, SWT.DEFAULT);
	else
		item = new TreeItem((TreeItem) parent, SWT.DEFAULT);
	item.setData(node);
	item.setText(node.getLabelText());
	Image image = node.getLabelImage();
	if (image != null) {
		item.setImage(image);
	}
	IPreferenceNode[] subnodes = node.getSubNodes();