use of com.intellij.profile.codeInspection.ProjectInspectionProfileManager in project intellij-community by JetBrains.
the class InspectionProfileImpl method writeScheme.
@NotNull
public Element writeScheme(boolean setSchemeStateToUnchanged) {
if (myDataHolder != null) {
return myDataHolder.read();
}
Element element = new Element(PROFILE);
writeExternal(element);
if (isProjectLevel()) {
element.setAttribute("version", "1.0");
}
if (isProjectLevel() && ProjectKt.isDirectoryBased(((ProjectInspectionProfileManager) getProfileManager()).getProject())) {
return new Element("component").setAttribute("name", "InspectionProjectProfileManager").addContent(element);
}
if (setSchemeStateToUnchanged) {
schemeState = SchemeState.UNCHANGED;
}
return element;
}
Aggregations