private HighlightDisplayLevel getErrorLevel(@NotNull HighlightDisplayKey key) { final ToolsImpl tools = getTools(key.toString()); LOG.assertTrue( tools != null, "profile name: " + myName + " base profile: " + (myBaseProfile != null ? myBaseProfile.getName() : "-") + " key: " + key); return tools != null ? tools.getLevel() : HighlightDisplayLevel.WARNING; }
public InspectionProfileImpl(InspectionProfileImpl inspectionProfile) { super(inspectionProfile.getName()); myRegistrar = inspectionProfile.myRegistrar; myTools = new HashMap<String, ToolsImpl>(); myDeinstalledInspectionsSettings = new LinkedHashMap<String, Element>(inspectionProfile.myDeinstalledInspectionsSettings); myBaseProfile = inspectionProfile.myBaseProfile; myLocal = inspectionProfile.myLocal; myLockedProfile = inspectionProfile.myLockedProfile; mySource = inspectionProfile; setProfileManager(inspectionProfile.getProfileManager()); copyFrom(inspectionProfile); initInspectionTools(); }
public String getBaseProfileName() { if (myBaseProfile == null) return null; return myBaseProfile.getName(); }