* @return The provider.
*/
private CompletionProvider createCompletionProvider() {
// Create the provider used when typing code.
CompletionProvider codeCP = createCodeCompletionProvider();
// The provider used when typing a string.
CompletionProvider stringCP = createStringCompletionProvider();
// The provider used when typing a comment.
CompletionProvider commentCP = createCommentCompletionProvider();
// Create the "parent" completion provider.
CCompletionProvider provider = new CCompletionProvider(codeCP);
provider.setStringCompletionProvider(stringCP);
provider.setCommentCompletionProvider(commentCP);