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
}
				
				string= buffer.toString();
			}
			replace(document, fReplacementOffset, fReplacementLength, string);
			if (fTextViewer != null && string != null) {
				int index= string.indexOf("()"); 
				if (index != -1) {
					
					IPreferenceStore preferenceStore= JavaPlugin.getDefault().getPreferenceStore();
					if (preferenceStore.getBoolean(CompilationUnitEditor.CLOSE_BRACKETS)) {
	
						int newOffset= fReplacementOffset + index;
		
						LinkedPositionManager manager= new LinkedPositionManager(document);
						manager.addPosition(newOffset + 1, 0);
		
						LinkedPositionUI editor= new LinkedPositionUI(fTextViewer, manager);
						editor.setExitPolicy(new ExitPolicy(')'));
						editor.setFinalCaretOffset(newOffset + 2);
						editor.enter();							
					}
				}
			}
		} catch (BadLocationException x) {
			
		}		
	}
	
	private static class ExitPolicy implements LinkedPositionUI.ExitPolicy {