request = new ContentAssistRequest(input, input, input.getStartStructuredDocumentRegion(),
getCompletionRegion(), position, contents.length(), contents);
}
// TODO: define a context and recorder that don't require a request.
IContentAssistContext context = createContentAssistContext(contents);
IContentAssistProposalRecorder recorder = createContentAssistRecorder();
IContentAssistCalculator calc = createContentAssistCalculator();
calc.computeProposals(context, recorder);
ArrayList<IContentProposal> proposals = new ArrayList<IContentProposal>();