Search in sources :

Example 6 with ProjectInspectionProfileManager

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;
}
Also used : PsiElement(com.intellij.psi.PsiElement) Element(org.jdom.Element) ProjectInspectionProfileManager(com.intellij.profile.codeInspection.ProjectInspectionProfileManager) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ProjectInspectionProfileManager (com.intellij.profile.codeInspection.ProjectInspectionProfileManager)6 InspectionProfile (com.intellij.codeInspection.InspectionProfile)2 SchemesCombo (com.intellij.application.options.schemes.SchemesCombo)1 InspectionManagerEx (com.intellij.codeInspection.ex.InspectionManagerEx)1 InspectionProfileImpl (com.intellij.codeInspection.ex.InspectionProfileImpl)1 InspectionToolWrapper (com.intellij.codeInspection.ex.InspectionToolWrapper)1 BaseInspectionProfileManager (com.intellij.profile.codeInspection.BaseInspectionProfileManager)1 InspectionProfileManager (com.intellij.profile.codeInspection.InspectionProfileManager)1 ProjectInspectionToolsConfigurable (com.intellij.profile.codeInspection.ui.ProjectInspectionToolsConfigurable)1 PsiElement (com.intellij.psi.PsiElement)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 Element (org.jdom.Element)1 NotNull (org.jetbrains.annotations.NotNull)1