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
*/ 
		boolean validated= startsWith(document, offset, fDisplayString);	
		if (validated && event != null) {
			
			int delta= (event.fText == null ? 0 : event.fText.length()) - event.fLength;
			fReplacementLength += delta;	
		}
		return validated;
	}
	
	/**
	 * Gets the proposal's relevance.
	 * @return Returns a int
	 */
	public int getRelevance() {
		return fRelevance;
	}
	/**
	 * Sets the proposal's relevance.
	 * @param relevance The relevance to set
	 */
	public void setRelevance(int relevance) {
		fRelevance= relevance;
	}
	/**
	 * Returns <code>true</code> if a words starts with the code completion prefix in the document,
	 * <code>false</code> otherwise.
	 */	
	protected boolean startsWith(IDocument document, int offset, String word) {
		int wordLength= word == null ? 0 : word.length();