Bug 52072 Code formatter -> white space -> control statements -> do while shows while example
The formatting options for the 'do while' statement shows an example of a 'while' loop rather than a 'do while' loop. Seems odd; either the option should be 'while' or the preview should show a do-while loop. Mac OS X.3.2 Eclipse 3.0M7
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
InnerNode element;
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.opening_paren"); 
        createBeforeOpenParenTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        createAfterOpenParenTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.after")); 
        roots.add(element);
        
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.closing_paren"); 
        createBeforeClosingParenTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        createAfterCloseParenTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.after")); 
        roots.add(element);
        
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.opening_brace"); 
        createBeforeOpenBraceTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        createAfterOpenBraceTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.after")); 
        roots.add(element);
        
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.closing_brace"); 
        createBeforeClosingBraceTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        createAfterCloseBraceTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.after")); 
        roots.add(element);
        
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.opening_bracket");         
        createBeforeOpenBracketTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        createAfterOpenBracketTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.after")); 
        roots.add(element);
        
        element= new InnerNode(null, workingValues, "WhiteSpaceOptions.closing_bracket");         
        createBeforeClosingBracketTree(workingValues, createChild(element, workingValues, "WhiteSpaceOptions.before")); 
        roots.add(element);