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
}
        public void selectionChanged(SelectionChangedEvent event) {
            final IStructuredSelection selection= (IStructuredSelection)event.getSelection();
            if (selection.isEmpty() || !(selection.getFirstElement() instanceof Node))
                return;
            final Node selected= (Node)selection.getFirstElement();
            if (selected == null || selected == fLastSelected) 
			    return;
            
            
            if (event.getSource() == fInnerViewer && selected instanceof InnerNode) {
                fLastSelected= (InnerNode)selected;
                fDialogSettings.put(PREF_INNER_INDEX, selected.index);
                innerViewerChanged((InnerNode)selected);
            }
            else if (event.getSource() == fOptionsViewer && selected instanceof OptionNode)
                fDialogSettings.put(PREF_OPTION_INDEX, selected.index);
        }
	
        private void innerViewerChanged(InnerNode selectedNode) {
            
			final List children= selectedNode.getChildren();
			
			final ArrayList optionsChildren= new ArrayList();
			for (final Iterator iter= children.iterator(); iter.hasNext();) {
			    final Object o= iter.next();
			    if (o instanceof OptionNode) optionsChildren.add(o);
			}
			
			fOptionsViewer.setInput(optionsChildren.toArray());