From 07912c50d3da05bb67feb4b73e4b4e3228e1e512 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Thu, 10 Mar 2005 11:58:32 +0300 Subject: [PATCH] get right project --- .../com/intellij/codeInspection/ex/InspectionProfileImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java b/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java index 7d058764ddea..c0e147f18a52 100644 --- a/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java +++ b/source/com/intellij/codeInspection/ex/InspectionProfileImpl.java @@ -569,7 +569,8 @@ public class InspectionProfileImpl implements InspectionProfile.ModifiableModel, private void copyToolsConfigurations(InspectionProfileImpl profile) { try { if (!profile.myTools.isEmpty()) { - final Project project = DummyProject.getInstance(); // TODO[ann]: review. + final InspectionTool tool = profile.myTools.values().iterator().next(); + final Project project = tool.getManager().getProject(); final InspectionTool[] inspectionTools = getInspectionTools(project); for (int i = 0; i < inspectionTools.length; i++) { readAndWriteToolsConfigs(inspectionTools[i], profile);