Bug 52476 [painting] redraw behavior
build M7 Annotated method AnnotationPainter.handleDrawRequest with a repaint counter. 1) Open TestCase.java 2) add line >String s= < to tearDown method, set caret at end of line 3) spell checking enabled, otherwise default settings 3) type a single space -> 1 immediate repaint, 3 after timeout 4) type " -> auto inserted closing " + linked mode -> 10 immediate repaints, 3 after timeout
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/link/LinkedUIControl.java
private IPositionUpdater fPositionUpdater= new DefaultPositionUpdater(getCategory());
	private boolean fDoContextInfo= false;
	private boolean fHasOpenCompoundChange= false;
	/**
	 * Creates a new UI on the given model (environment) and the set of
	 * viewers. The environment must provide a tab stop sequence with a
	 * non-empty list of tab stops.
	 * 
	 * @param environment the linked position model
	 * @param targets the non-empty list of targets upon which the linked ui
	 *        should act
	 */
	public LinkedUIControl(LinkedEnvironment environment, LinkedUITarget[] targets) {
		constructor(environment, targets);
	}
	/**
	 * Conveniance ctor for just one viewer.
	 * 
	 * @param environment the linked position model
	 * @param viewer the viewer upon which the linked ui
	 *        should act
	 */
	public LinkedUIControl(LinkedEnvironment environment, ITextViewer viewer) {
		constructor(environment, new LinkedUITarget[]{new EmptyTarget(viewer)});
	}
	/**
	 * Conveniance ctor for multiple viewers.
	 * 
	 * @param environment the linked position model
	 * @param viewers the non-empty list of viewers upon which the linked ui