use getCurrentProfile

This commit is contained in:
Vladimir Krivosheev
2016-06-06 17:28:27 +02:00
parent 75a1634847
commit 78bcbdd421
65 changed files with 126 additions and 131 deletions

View File

@@ -54,7 +54,7 @@ public class AddIgnoredRoleFix implements LocalQuickFix, LowPriorityAction {
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
if (!myInspection.ignoredRoles.contains(myRole)) {
myInspection.ignoredRoles.add(myRole);
final InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getInspectionProfile();
final InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile();
ApplicationProfileManager.getInstance().fireProfileChanged(profile);
}
}