コード例 #1
0
 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;
 }
コード例 #2
0
  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();
  }
コード例 #3
0
 public String getBaseProfileName() {
   if (myBaseProfile == null) return null;
   return myBaseProfile.getName();
 }