diff options
Diffstat (limited to 'platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java')
-rw-r--r-- | platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java index 0a1861e8000e..346a4446090a 100644 --- a/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java +++ b/platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfileImpl.java @@ -772,18 +772,17 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel, return InspectionProfileImplHolder.DEFAULT_PROFILE; } - public Document saveToDocument() throws WriteExternalException { + public Element saveToDocument() throws WriteExternalException { if (isLocal()) { Element root = new Element(ROOT_ELEMENT_TAG); root.setAttribute(PROFILE_NAME_TAG, myName); writeExternal(root); //myVisibleTreeState.writeExternal(root); - return new Document(root); + return root; } else { return null; } - } @Override @@ -886,13 +885,13 @@ public class InspectionProfileImpl extends ProfileEx implements ModifiableModel, getTools(toolId, project).removeScope(scopeIdx); } - public void removeScope(@NotNull String toolId, @NotNull NamedScope scope, Project project) { - getTools(toolId, project).removeScope(scope); + public void removeScope(@NotNull String toolId, @NotNull String scopeName, Project project) { + getTools(toolId, project).removeScope(scopeName); } - public void removeScopes(@NotNull List<String> toolIds, @NotNull NamedScope scope, Project project) { + public void removeScopes(@NotNull List<String> toolIds, @NotNull String scopeName, Project project) { for (final String toolId : toolIds) { - removeScope(toolId, scope, project); + removeScope(toolId, scopeName, project); } } |