Search in sources :

Example 1 with AnnotationSource

use of com.intellij.openapi.vcs.annotate.AnnotationSource in project intellij-community by JetBrains.

the class SwitchAnnotationSourceAction method actionPerformed.

public void actionPerformed(AnActionEvent e) {
    myShowMerged = !myShowMerged;
    final AnnotationSource newSource = AnnotationSource.getInstance(myShowMerged);
    mySwitcher.switchTo(newSource);
    for (Consumer<AnnotationSource> listener : myListeners) {
        listener.consume(newSource);
    }
    myGutter.revalidateMarkup();
}
Also used : AnnotationSource(com.intellij.openapi.vcs.annotate.AnnotationSource)

Aggregations

AnnotationSource (com.intellij.openapi.vcs.annotate.AnnotationSource)1