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
CodeFormatter.K_STATEMENTS, 
    "String s= ((String)object);"); 
    private final static PreviewSnippet MULT_LOCAL_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "int a= 0, b= 1, c= 2, d= 3;"); 
    private final static PreviewSnippet MULT_FIELD_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_CLASS_BODY_DECLARATIONS, 
    "int a=0,b=1,c=2,d=3;"); 
    private final static PreviewSnippet BLOCK_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "if (true) { return 1; } else { return 2; }"); 
    private final static PreviewSnippet PAREN_EXPR_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "result= (a *( b +  c + d) * (e + f));"); 
    
    /**
     * Create the tree, in this order: position - syntax element - abstract
     * element
     */
    public static ArrayList createTreeByPosition(Map workingValues) {
        final ArrayList roots= new ArrayList();
        
        final InnerNode before= new InnerNode(null, workingValues, "WhiteSpaceOptions.before"); 
        createBeforeOpenParenTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.opening_paren")); 
        createBeforeClosingParenTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.closing_paren")); 
        createBeforeOpenBraceTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.opening_brace")); 
        createBeforeClosingBraceTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.closing_brace")); 
        createBeforeOpenBracketTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.opening_bracket")); 
        createBeforeClosingBracketTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.closing_bracket")); 
        createBeforeOperatorTree(workingValues, createChild(before, workingValues, "WhiteSpaceOptions.operator"));