use of org.eclipse.wst.xml.ui.internal.contentassist.NoRegionContentAssistProcessor in project jbosstools-hibernate by jbosstools.
the class CFGXMLStructuredTextViewerConfiguration method getContentAssistProcessors.
protected IContentAssistProcessor[] getContentAssistProcessors(ISourceViewer sourceViewer, String partitionType) {
IContentAssistProcessor[] processors = null;
IService service = StructuredTextViewerConfigurationUtil.getService(sourceViewer);
if ((IStructuredPartitions.DEFAULT_PARTITION.equals(partitionType)) || (IXMLPartitions.XML_DEFAULT.equals(partitionType))) {
// TODO: return cached one ?
processors = new IContentAssistProcessor[] { new CFGXMLContentAssistProcessor(service) };
} else if (IStructuredPartitions.UNKNOWN_PARTITION.equals(partitionType)) {
processors = new IContentAssistProcessor[] { new NoRegionContentAssistProcessor() };
}
return processors;
}
Aggregations