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
/*******************************************************************************
 * Copyright (c) 2000, 2004 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.preferences.formatter;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.formatter.CodeFormatter;
import org.eclipse.jdt.core.formatter.DefaultCodeFormatterConstants;
import org.eclipse.jdt.internal.ui.preferences.formatter.SnippetPreview.PreviewSnippet;
/**
 * Manage code formatter white space options on a higher level. 
 */
public final class WhiteSpaceOptions {