Bug 25169 Eating CA: visual indication remains
1) set preference: Insert Proposals 2) open TestCase.java 3) enable segmentated view 4) select TestCase(String) 5) place cursor at Stri>I<ng 6) activate code assist 7) select String from the proposal list 8) press Ctrl 9) press Enter -> color indication remains although content assist window closed
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProposal.java
}
			
		int offset= caretOffset - visibleRegion.getOffset();
		int length= fReplacementOffset + fReplacementLength - caretOffset;
	
		Color foreground= getForegroundColor(text);
		Color background= getBackgroundColor(text);
		repairPresentation(viewer);
		fRememberedStyleRange= new StyleRange(offset, length, foreground, background);
		text.setStyleRange(fRememberedStyleRange);
	}
	/*
	 * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#selected(ITextViewer, boolean)
	 */
	public void selected(ITextViewer viewer, boolean smartToggle) {
		if (!insertCompletion() ^ smartToggle)
			updateStyle(viewer);
		else {
			repairPresentation(viewer);
			fRememberedStyleRange= null;
		}
	}
	/*
	 * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#unselected(ITextViewer)
	 */
	public void unselected(ITextViewer viewer) {
		repairPresentation(viewer);
		fRememberedStyleRange= null;
	}
}