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
private final SwitchComponent fSwitchComponent;
	protected final IDialogSettings fDialogSettings; 
	protected SnippetPreview fPreview;
	/**
	 * Create a new white space dialog page.
	 * @param modifyDialog
	 * @param workingValues
	 */
	public WhiteSpaceTabPage(ModifyDialog modifyDialog, Map workingValues) {
		super(modifyDialog, workingValues);
		fDialogSettings= JavaPlugin.getDefault().getDialogSettings();
		fSwitchComponent= new SwitchComponent();
	}
	protected void doCreatePreferences(Composite composite, int numColumns) {
		fSwitchComponent.createContents(numColumns, composite);
	}
	protected void initializePage() {
        fSwitchComponent.initialize();
	}
	
    protected JavaPreview doCreateJavaPreview(Composite parent) {
        fPreview= new SnippetPreview(fWorkingValues, parent);
        return fPreview;
    }
    protected void doUpdatePreview() {
        fPreview.update();
    }
}