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
private final SwitchComponent fSwitchComponent;
	protected final IDialogSettings fDialogSettings; 
	protected SnippetPreview fPreview;
	/**
	 * Create a new white space dialog page.
	 * @param modifyDialog
	 * @param workingValues
	 */
	public WhiteSpaceTabPage(ModifyDialog modifyDialog, Map workingValues) {
		super(modifyDialog, workingValues);
		fDialogSettings= JavaPlugin.getDefault().getDialogSettings();
		fSwitchComponent= new SwitchComponent();
	}
	protected void doCreatePreferences(Composite composite, int numColumns) {
		fSwitchComponent.createContents(numColumns, composite);
	}
	protected void initializePage() {
        fSwitchComponent.initialize();
	}
	
    protected JavaPreview doCreateJavaPreview(Composite parent) {
        fPreview= new SnippetPreview(fWorkingValues, parent);
        return fPreview;
    }
    protected void doUpdatePreview() {
        fPreview.update();
    }
}