Search in sources :

Example 1 with RefGraphAnnotator

use of com.intellij.codeInspection.reference.RefGraphAnnotator in project intellij-community by JetBrains.

the class GlobalInspectionToolWrapper method initialize.

@Override
public void initialize(@NotNull GlobalInspectionContext context) {
    super.initialize(context);
    RefManagerImpl refManager = (RefManagerImpl) context.getRefManager();
    final RefGraphAnnotator annotator = getTool().getAnnotator(refManager);
    if (annotator != null) {
        refManager.registerGraphAnnotator(annotator);
    }
    getTool().initialize(context);
}
Also used : RefManagerImpl(com.intellij.codeInspection.reference.RefManagerImpl) RefGraphAnnotator(com.intellij.codeInspection.reference.RefGraphAnnotator)

Aggregations

RefGraphAnnotator (com.intellij.codeInspection.reference.RefGraphAnnotator)1 RefManagerImpl (com.intellij.codeInspection.reference.RefManagerImpl)1