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 Combo fSwitchCombo; 
	    private PageBook fPageBook;
	    private final SyntaxComponent fSyntaxComponent;
	    private final JavaElementComponent fJavaElementComponent;
	    
	    public SwitchComponent() {
	        fSyntaxComponent= new SyntaxComponent();
	        fJavaElementComponent= new JavaElementComponent();
	    }
	    
        public void widgetSelected(SelectionEvent e) {
            final int index= fSwitchCombo.getSelectionIndex();
            if (index == 0) {
    		    fDialogSettings.put(PREF_VIEW_KEY, false);
    		    fJavaElementComponent.refreshState();
                fPageBook.showPage(fJavaElementComponent.getControl());
            }
            else if (index == 1) { 
    		    fDialogSettings.put(PREF_VIEW_KEY, true);
    		    fSyntaxComponent.refreshState();
                fPageBook.showPage(fSyntaxComponent.getControl());
            }
        }
        public void createContents(int numColumns, Composite parent) {
             
            fPageBook= new PageBook(parent, SWT.NONE);
            fPageBook.setLayoutData(createGridData(numColumns, GridData.FILL_BOTH, 0));