Search in sources :

Example 1 with CodeMiningManager

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);
    }
}
Also used : InlinedAnnotationSupport(org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport) CodeMiningManager(org.eclipse.jface.internal.text.codemining.CodeMiningManager)

Aggregations

CodeMiningManager (org.eclipse.jface.internal.text.codemining.CodeMiningManager)1 InlinedAnnotationSupport (org.eclipse.jface.text.source.inlined.InlinedAnnotationSupport)1