use of com.intellij.profile.ProfileChangeAdapter in project intellij-community by JetBrains.
the class WholeFileLocalInspectionsPassFactory method projectOpened.
@Override
public void projectOpened() {
final ProfileChangeAdapter myProfilesListener = new ProfileChangeAdapter() {
@Override
public void profileChanged(InspectionProfile profile) {
myFileToolsCache.clear();
}
@Override
public void profileActivated(InspectionProfile oldProfile, @Nullable InspectionProfile profile) {
myFileToolsCache.clear();
}
};
myProfileManager.addProfileChangeListener(myProfilesListener, myProject);
Disposer.register(myProject, myFileToolsCache::clear);
}
Aggregations