Bug 20475 Quick fix proposal preview: Bold off by 2 characters
F3 create file class A extends Object1 { } -> Object1 is marked as temporary error, Quick Fix. Select 'Change to Object', look at the preview: The preview shows changes in bold: It is off by 2 charaters: 'ject {' is bold, should be 'Object'. From debugging I see that the resulting html is correct, bug must be in rendering. Look stupid, should be fixed.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/HTML2TextReader.java
package org.eclipse.jdt.internal.ui.text;
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
import java.io.IOException;
import java.io.PushbackReader;
import java.io.Reader;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyleRange;
import org.eclipse.jface.text.TextPresentation;
import org.eclipse.jdt.internal.ui.JavaUIMessages;
/**
 * Reads the text contents from a reader of HTML contents and translates 
 * the tags or cut them out.
 */
public class HTML2TextReader extends SubstitutionTextReader {
	
	
	private static final String LINE_DELIM= System.getProperty("line.separator", "\n"); 
	private static final Map fgEntityLookup;
	private static final Set fgTags;