Bug 94696 Show Profile dialog sizes badly when custom dialog font is used
I20050509-2010 When a custom dialog font is use, the Show Profile dialog may not be large enough to show all controls. Either it should size properly or add the controls to a scrollable pane. Image forthcoming.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceTabPage.java
fJavaElementComponent.createContents(numColumns, fPageBook);		
            fSyntaxComponent.createContents(numColumns, fPageBook);
            
            fSwitchCombo= new Combo(parent, SWT.READ_ONLY);
            final GridData gd= createGridData(numColumns, GridData.HORIZONTAL_ALIGN_END, SWT.DEFAULT);
            fSwitchCombo.setLayoutData(gd);
            fSwitchCombo.setItems(fItems);
        }
        
        public void initialize() {
            fSwitchCombo.addSelectionListener(this);
    	    fJavaElementComponent.initialize();
    	    fSyntaxComponent.initialize();
    	    restoreSelection();
        }
        private void restoreSelection() {
            final boolean selectSyntax= fDialogSettings.getBoolean(PREF_VIEW_KEY);
            if (selectSyntax) {
            	fSyntaxComponent.refreshState();
                fSwitchCombo.setText(fItems[1]);
                fPageBook.showPage(fSyntaxComponent.getControl());
			} else {
            	fJavaElementComponent.refreshState();
			    fSwitchCombo.setText(fItems[0]);
			    fPageBook.showPage(fJavaElementComponent.getControl());
			}
        }
	}