Bug 54658 Bug in Code Formatter > Line Wrapping
Code Formatter > Line Wrapping: The preview is not shown correctly from the beginning. The "Set line width for preview window" number has to be reset to another OR even THE SAME value to correct the display.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/LineWrappingTabPage.java
FormatterMessages.getString("LineWrappingTabPage.indentation.on_column"),  
	    FormatterMessages.getString("LineWrappingTabPage.indentation.by_one") 
	};
	
	
	protected final static String[] WRAPPING_NAMES = { 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.do_not_split"), 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.wrap_when_necessary"), 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.always_wrap_first_others_when_necessary"), 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.wrap_always"), 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.wrap_always_indent_all_but_first"), 
	    FormatterMessages.getString("LineWrappingTabPage.splitting.wrap_always_except_first_only_if_necessary") 
	};
	
	private final static Category fCompactIfCategory= new Category(
	    DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF,
	    "class Example {" + 
	    "int foo(int argument) {" + 
	    "  if (argument==0) return 0;" + 
	    "  if (argument==1) return 42; else return 43;" + 	
	    "}}", 
	    FormatterMessages.getString("LineWrappingTabPage.compact_if_else") 
	);
	
	private final static Category fTypeDeclarationSuperclassCategory= new Category(
	    DefaultCodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION,
	    "class Example extends OtherClass {}", 
	    FormatterMessages.getString("LineWrappingTabPage.extends_clause") 
	);