Completion proposals can implement {@link ICompletionProposalExtension6}to provide colored proposal labels.
true
149150151152153154155156157158159
processor = new JavaCompletionProcessor(fEditor.getATGModelProvider(), fEditor); assistant.enableAutoActivation(true); assistant.setContentAssistProcessor(processor, ATGPartitions.PARSER_CODE); assistant.enableColoredLabels(true); //assistant.enablePrefixCompletion(true); //assistant.enableAutoInsert(true); return assistant; }
139140141142143144145146147148149
.setProposalPopupOrientation(IContentAssistant.PROPOSAL_STACKED); assistant .setContextInformationPopupOrientation(IContentAssistant.CONTEXT_INFO_BELOW); assistant .setInformationControlCreator(getInformationControlCreator(sourceViewer)); assistant.enableColoredLabels(true); return assistant; }