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
Assert.isTrue(false);
		} catch (BadPositionCategoryException e) {
			
			Assert.isTrue(false);
		}
	}
	private void updateSelection(ModifyEvent event) {
		
		
		if (!fIsActive || event.getSource() != fCurrentTarget.fWidget)
			return;
		if (!fCaretPosition.isDeleted())
			fCurrentTarget.getViewer().setSelectedRange(fCaretPosition.getOffset(), 0);
		fCaretPosition.isDeleted= true;
	}
	private String getCategory() {
		return toString();
	}
	/**
	 * Sets the context info property. If set to <code>true</code>, context
	 * info will be invoked on the current target's viewer whenever a position
	 * is switched.
	 * 
	 * @param doContextInfo The doContextInfo to set.
	 */
	public void setDoContextInfo(boolean doContextInfo) {
		fDoContextInfo= doContextInfo;
	}
}