use of org.eclipse.jface.internal.text.codemining.CodeMiningManager in project eclipse.platform.text by eclipse.
the class SourceViewer method ensureCodeMiningManagerInstalled.
/**
* Ensures that the code mining manager has been
* installed if a content mining provider is available.
*
* @since 3.13
*/
private void ensureCodeMiningManagerInstalled() {
if (fCodeMiningProviders != null && fCodeMiningProviders.length > 0 && fAnnotationPainter != null) {
if (fInlinedAnnotationSupport == null) {
fInlinedAnnotationSupport = new InlinedAnnotationSupport();
fInlinedAnnotationSupport.install(this, fAnnotationPainter);
}
fCodeMiningManager = new CodeMiningManager(this, fInlinedAnnotationSupport, fCodeMiningProviders);
}
}
Aggregations