Bug 56691 Missing Java Formatter option when sort is by Java element [formatter]
In Preferences|Java|Code Style|Code Formatter, select "Edit". In the "Edit Profile" dialog, select the White Space tab. In the little list box, first select "Sort options by Syntax element." One of the 24 items in the resulting tree list is "Before opening brace". Expand this node, and note that there is a subitem "Array Initializer". Now select "Sort options by Java element" in the list box. Expand the "Arrays" node in the resulting tree list, then select the "Array Initializers" subnode. In the lower pane, there is a list of five possible positions for white space. It does not include "before opening brace".
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceOptions.java
private final static PreviewSnippet IF_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "if (condition) { return foo; } else {return bar;}"); 
    private final static PreviewSnippet SYNCHRONIZED_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "synchronized (list) { list.add(element); }"); 
    private final static PreviewSnippet SWITCH_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "switch (number) { case RED: return GREEN; case GREEN: return BLUE; case BLUE: return RED; default: return BLACK;}"); 
    private final static PreviewSnippet CONSTRUCTOR_DECL_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_CLASS_BODY_DECLARATIONS, 
    "MyClass() throws E0, E1 { this(0,0,0);}" +  
    "MyClass(int x, int y, int z) throws E0, E1 { super(x, y, z, true);}"); 
    private final static PreviewSnippet METHOD_DECL_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_CLASS_BODY_DECLARATIONS, 
    "void foo() throws E0, E1 {};" +  
    "void bar(int x, int y) throws E0, E1 {}"); 
    private final static PreviewSnippet ARRAY_DECL_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "int [] array0= new int [] {};\n" +  
    "int [] array1= new int [] {1, 2, 3};\n" +  
    "int [] array2= new int[3];"); 
    private final static PreviewSnippet ARRAY_REF_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "array[i].foo();"); 
    private final static PreviewSnippet METHOD_CALL_PREVIEW= new PreviewSnippet(
    CodeFormatter.K_STATEMENTS, 
    "foo();\n" +  
    "bar(x, y);");