Bug 26109 [Dialogs] Need a FormData version of the button sizing API
The button sizing API in Dialog assumes the developer wants a GridData. We should promote the FormData version in PathVariablesDialog to Dialog.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
*/
private boolean isContained(Control container, Control c) {
	Composite parent;
	while ((parent= c.getParent()) != null) {
		if (parent == container)
			return true;
		c= parent;
	}
	return false;
}
/**
 * The <code>Dialog</code> implementation of this <code>Window</code> method 
 * creates and lays out the top level composite for the dialog, and
 * determines the appropriate horizontal and vertical dialog units
 * based on the font size. It then calls the <code>createDialogArea</code>
 * and <code>createButtonBar</code> methods to create the dialog area
 * and button bar, respectively. Overriding <code>createDialogArea</code> and
 * <code>createButtonBar</code> are recommended rather than overriding
 * this method.
 */
protected Control createContents(Composite parent) {
	
	Composite composite = new Composite(parent, 0);
	GridLayout layout = new GridLayout();
	layout.marginHeight = 0;
	layout.marginWidth = 0;
	layout.verticalSpacing = 0;
	composite.setLayout(layout);
	composite.setLayoutData(new GridData(GridData.FILL_BOTH));
	composite.setFont(parent.getFont());