ITextViewer viewer, int offset, Object[] keywords,
Object[][] segments) {
ITextSelection selection = (ITextSelection) viewer
.getSelectionProvider().getSelection();
WordFinderAdaptor wordFinder = new WordFinderAdaptor(viewer
.getDocument(), fIdentDetector);
String prefix = wordFinder.getPrefix(offset);
IRegion region = new Region(offset - prefix.length(), prefix.length()
+ selection.getLength());
prefix = prefix.toLowerCase();
LinkedList<ICompletionProposal> completionProposals = new LinkedList<ICompletionProposal>();