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
private RefactoringWizard fWizard;
	private IWizardPage fCurrentPage;
	private IWizardPage fVisiblePage;
	
	private boolean fMakeNextButtonDefault;
	
	private PageBook fPageContainer;
	private PageBook fStatusContainer;
	private MessageBox fMessageBox;
	private ProgressMonitorPart fProgressMonitorPart;
	private int fActiveRunningOperations;
	private Cursor fWaitCursor;
	private Cursor fArrowCursor;
	private static final int PREVIEW_ID= IDialogConstants.CLIENT_ID + 1;
	private int fPreviewWidth;
	private int fPreviewHeight;
	private IDialogSettings fSettings;
	private static final String DIALOG_SETTINGS= "RefactoringWizard.preview"; 
	private static final String WIDTH= "width"; 
	private static final String HEIGHT= "height"; 
	
	private static final Image INFO= RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_INFO);
	private static final Image WARNING= RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_WARNING);
	private static final Image ERROR= RefactoringPluginImages.get(RefactoringPluginImages.IMG_OBJS_REFACTORING_ERROR);
	
	private static class MessageBox extends Composite {