Bug 74614 Code formatter preference page: bogus preview code
3.1 M2: Code Formatter > White Space > Parameterized type > Parameterized type Preview: "Map<String, Element> map = new<String, Element> HashMap();" is wrong. BTW, in tree double "Parameterized type" is ugly, why not use something like "Type" on the second level.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/WhiteSpaceTabPage.java
fInnerViewer= new TreeViewer(sashForm, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL);
			fInnerViewer.setContentProvider(new ITreeContentProvider() {
				public Object[] getElements(Object inputElement) {
					return ((Collection)inputElement).toArray();
				}
				public Object[] getChildren(Object parentElement) {
				    final List children= ((Node)parentElement).getChildren();
				    final ArrayList innerChildren= new ArrayList();
				    for (final Iterator iter= children.iterator(); iter.hasNext();) {
                        final Object o= iter.next();
                        if (o instanceof InnerNode) innerChildren.add(o);
                    }
				    return innerChildren.toArray();
				}
				public Object getParent(Object element) {
				    if (element instanceof InnerNode)
				        return ((InnerNode)element).getParent();
				    return null;
				}
				public boolean hasChildren(Object element) {
				    final List children= ((Node)element).getChildren();
				    for (final Iterator iter= children.iterator(); iter.hasNext();)
                        if (iter.next() instanceof InnerNode) return true;
				    return false;
				}
				public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}
				public void dispose() {}
			});
			
			fInnerViewer.setLabelProvider(new LabelProvider());