Search in sources :

Example 1 with ApplicationInspectionProfileManager

use of com.intellij.codeInspection.ex.ApplicationInspectionProfileManager in project intellij-community by JetBrains.

the class DaemonCodeAnalyzerSettingsImpl method loadState.

@Override
public void loadState(Element state) {
    XmlSerializer.deserializeInto(this, state);
    ApplicationInspectionProfileManager inspectionProfileManager = ApplicationInspectionProfileManager.getInstanceImpl();
    inspectionProfileManager.getConverter().storeEditorHighlightingProfile(state, new InspectionProfileImpl(InspectionProfileConvertor.OLD_HIGHTLIGHTING_SETTINGS_PROFILE));
    inspectionProfileManager.setRootProfile(StringUtil.notNullize(state.getAttributeValue("profile"), "Default"));
}
Also used : InspectionProfileImpl(com.intellij.codeInspection.ex.InspectionProfileImpl) ApplicationInspectionProfileManager(com.intellij.codeInspection.ex.ApplicationInspectionProfileManager)

Aggregations

ApplicationInspectionProfileManager (com.intellij.codeInspection.ex.ApplicationInspectionProfileManager)1 InspectionProfileImpl (com.intellij.codeInspection.ex.InspectionProfileImpl)1