Bug 38483 Delete: buttons on the 'Found Problems' page [refactoring]
20030604 1. make Java file read-only and delete a method in it 2. On the first dialog, press ok, a 'Found Problems' dialog shows up 3. The dialog has two buttons: Back and cancel Back is not too helpfull as you can't change anything on the first dialog Cancel should probably be better 'Ok'
org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/RefactoringWizardDialog2.java
Rectangle display= shell.getDisplay().getClientArea();
		rect.x= Math.max(0, rect.x - dx);
		rect.y= Math.max(0, rect.y - dy);
		rect.width= Math.min(rect.width + dw, display.width);
		rect.height= Math.min(rect.height + dh, display.height);
		int xe= rect.x + rect.width;
		if (xe > display.width) {
			rect.x-= xe - display.width; 
		}
		int ye= rect.y + rect.height;
		if (ye > display.height) {
			rect.y-= ye - display.height; 
		}
		shell.setBounds(rect);
	}
	
	
	
	protected void configureShell(Shell newShell) {
		super.configureShell(newShell);
		newShell.setText(fWizard.getDefaultPageTitle());
	}
	
	protected Control createContents(Composite parent) {
		Composite result= new Composite(parent, SWT.NONE);
		GridLayout layout= new GridLayout();
		layout.marginHeight= 0; layout.marginWidth= 0;
		layout.verticalSpacing= 0; layout.horizontalSpacing= 0;
		result.setLayout(layout);
		result.setLayoutData(new GridData(GridData.FILL_BOTH));