mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection settings: cleanup (rename)
This commit is contained in:
+5
-5
@@ -53,21 +53,21 @@ public abstract class InspectionProfileSchemesModel implements SchemesModel<Insp
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDeleteScheme(@NotNull InspectionProfileModifiableModel profile) {
|
||||
public boolean canDeleteScheme(@NotNull InspectionProfileModifiableModel candidateToDelete) {
|
||||
boolean projectProfileFound = false;
|
||||
boolean ideProfileFound = false;
|
||||
|
||||
for (SingleInspectionProfilePanel profilePanel : myProfilePanels) {
|
||||
final InspectionProfileModifiableModel profile1 = profilePanel.getProfile();
|
||||
if (profile == profile1) continue;
|
||||
final boolean isProjectProfile = profile1.getProfileManager() == myProjectProfileManager;
|
||||
final InspectionProfileModifiableModel profile = profilePanel.getProfile();
|
||||
if (candidateToDelete == profile) continue;
|
||||
final boolean isProjectProfile = profile.getProfileManager() == myProjectProfileManager;
|
||||
projectProfileFound |= isProjectProfile;
|
||||
ideProfileFound |= !isProjectProfile;
|
||||
|
||||
if (ideProfileFound && projectProfileFound) break;
|
||||
}
|
||||
|
||||
return profile.getProfileManager() == myProjectProfileManager ? projectProfileFound : ideProfileFound;
|
||||
return candidateToDelete.getProfileManager() == myProjectProfileManager ? projectProfileFound : ideProfileFound;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user