Bug 87311 Rename preview UI too large with multiple displays [refactoring] [dialogs]
The Preview window shouldn't be sized to fit the larger display if it actually shows up on the smaller display. OS X 10.3.8, Java 1.4.2. Use two displays of different sizes (laptop 1280 x 854, external monitor 1280 x 1024, menu and dock on the smaller laptop display), two Eclipse windows open, one per display, maximized, containing the same project. Select a java file in Package Explorer on either window and choose Refactor|Rename..., then change the name in the Rename Compilation Unit dialog and select Preview. The preview UI will usually appear centered on the smaller laptop display, but since it is too large it gets clipped on the top and bottom and you cannot access the window title bar (with it's close, maximize and iconize icons), the grow handle in the lower right corner or the Cancel and OK buttons. The scroll bar is also clipped so you cannot view all the items in the original source and refactored source columns. You can still press the escape key to cancel or press return for OK.
org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/RefactoringWizardDialog2.java
super.handleShellCloseEvent();
		}
	}
	
	private boolean isPreviewPageActive() {
		return IPreviewWizardPage.PAGE_NAME.equals(fCurrentPage.getName());
	}
	
	private void previewPressed() {
		IWizardPage current= fCurrentPage;
		fCurrentPage= fCurrentPage.getNextPage();
		if (current == fCurrentPage)
			return;
		String pageName= fCurrentPage.getName();
		if (ErrorWizardPage.PAGE_NAME.equals(pageName)) {
			if (showErrorDialog((ErrorWizardPage)fCurrentPage)) {
				fCurrentPage= fCurrentPage.getNextPage();
				pageName= fCurrentPage.getName();
			} else {
				return;
			}
		}
		if (IPreviewWizardPage.PAGE_NAME.equals(pageName)) {
			fCurrentPage.createControl(fPageContainer);
			makeVisible(fCurrentPage);
			updateButtons();
			if (((PreviewWizardPage)fCurrentPage).hasChanges())
				resize();
			else
				getButton(IDialogConstants.OK_ID).setEnabled(false);