protected IContentAssistProcessor getContentAssistProcessor(ISourceViewer sourceViewer, String contentType) {
if (DjCssSourceConfiguration.DEFAULT.equals(contentType)) {
return DjCssSourceConfiguration.getDefault().getContentAssistProcessor(getEditor(), contentType);
}
//Note: The HTMLSourceViewerConfiguration should get the CSS content assist based on the content type.
IContentAssistProcessor cssContentAssistProcessor = CSSSourceConfiguration.getDefault()
.getContentAssistProcessor(getEditor(), contentType);
if (CSSSourceConfiguration.DEFAULT.equals(contentType) || IDocument.DEFAULT_CONTENT_TYPE.equals(contentType)) {
return new DjContentAssistProcessor(contentType, cssContentAssistProcessor);
}
return cssContentAssistProcessor;