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
*/
protected void cancelPressed() {
	setReturnCode(CANCEL);
	close();
}
/**
 * Constrain the shell size to be no larger than the display bounds.
 * Reduce the shell size and move its origin as required.
 * 
 * @since 2.0
 */
protected void constrainShellSize() {
	
	super.constrainShellSize();
	Shell shell = getShell();
	Point size = shell.getSize();
	Rectangle bounds = shell.getDisplay().getClientArea();
	
	
	
	Point loc = shell.getLocation();
	
	 
	
	int x = Math.max(bounds.x, Math.min(loc.x, bounds.x + bounds.width - size.x));
	int y = Math.max(bounds.y, Math.min(loc.y, bounds.y + bounds.height - size.y));
	shell.setLocation(x, y);
}
/**
 * Returns the number of pixels corresponding to the