IContentAssistProcessor processor;
//processor = new ATGContentAssistProcessor(fEditor.getATGModelProvider());
assistant.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new IgnoreCaseSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.IGNORECASE_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new CharactersSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.CHARACTERS_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new TokensSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.TOKENS_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new PragmasSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.PRAGMAS_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new CommentsSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.COMMENTS_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new IgnoreSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.IGNORE_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new ProductionsSegmentProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.PRODUCTIONS_SEGMENT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new DefaultProposalProvider());
assistant.setContentAssistProcessor(processor, ATGPartitions.DEFAULT);
processor = new ATGCompletionProcessor(fEditor.getATGModelProvider(), new IgnoreCaseSegmentProposalProvider());
processor = new JavaCompletionProcessor(fEditor.getATGModelProvider(), fEditor);
assistant.enableAutoActivation(true);
assistant.setContentAssistProcessor(processor, ATGPartitions.PARSER_CODE);