Search in sources :

Example 1 with ModuleFileEvent

use of org.sonarsource.sonarlint.plugin.api.module.file.ModuleFileEvent in project sonarlint-core by SonarSource.

the class ModuleFileEventNotifier method fireModuleFileEvent.

public void fireModuleFileEvent(ClientModuleFileEvent event) {
    ModuleFileEvent apiEvent = DefaultModuleFileEvent.of(inputFileBuilder.create(event.target()), event.type());
    listeners.forEach(l -> tryFireModuleFileEvent(l, apiEvent));
}
Also used : ModuleFileEvent(org.sonarsource.sonarlint.plugin.api.module.file.ModuleFileEvent) ClientModuleFileEvent(org.sonarsource.sonarlint.core.analysis.api.ClientModuleFileEvent)

Aggregations

ClientModuleFileEvent (org.sonarsource.sonarlint.core.analysis.api.ClientModuleFileEvent)1 ModuleFileEvent (org.sonarsource.sonarlint.plugin.api.module.file.ModuleFileEvent)1