Bug 99140 [preferences] Syntax coloring preference page does not update preview
N20050609-0010 + JDT/Core & UI from HEAD Syntax coloring preference page does not update preview: - enable 'Auto(un)boxed expressions' -> changing one of the color or font settings does not update the preview - toggling 'Enable' updates the preview
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/SemanticHighlightingManager.java
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.Region;
import org.eclipse.jface.text.TextAttribute;
import org.eclipse.jdt.ui.text.IColorManager;
import org.eclipse.jdt.ui.text.IColorManagerExtension;
import org.eclipse.jdt.ui.text.IJavaPartitions;
import org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration;
import org.eclipse.jdt.internal.ui.text.JavaPresentationReconciler;
/**
 * Semantic highlighting manager
 *
 * @since 3.0
 */
public class SemanticHighlightingManager implements IPropertyChangeListener {
	/**
	 * Highlighting.
	 */
	static class Highlighting { 
		
		private TextAttribute fTextAttribute;
		
		private boolean fIsEnabled;
		/**
		 * Initialize with the given text attribute.
		 * @param textAttribute The text attribute
		 * @param isEnabled the enabled state
		 */
		public Highlighting(TextAttribute textAttribute, boolean isEnabled) {
			setTextAttribute(textAttribute);
			setEnabled(isEnabled);