question: private void simpleApply ( IDocument document , String string , ConfigurableCompletionProposal proposal ) throws BadLocationException { proposal . setCursorPosition ( string . length ( ) ) ; document . replace ( proposal . getReplacementOffset ( ) , proposal . getReplacementLength ( ) , string ) ; }
target:  Just insert the string at the replacement offset. Everything else is fine.