diff --git a/platform/testRunner/src/com/intellij/execution/testframework/autotest/AutoTestManager.java b/platform/testRunner/src/com/intellij/execution/testframework/autotest/AutoTestManager.java index fe885ba53321..7d5f1cba19fb 100644 --- a/platform/testRunner/src/com/intellij/execution/testframework/autotest/AutoTestManager.java +++ b/platform/testRunner/src/com/intellij/execution/testframework/autotest/AutoTestManager.java @@ -23,6 +23,7 @@ import java.util.Collection; */ public class AutoTestManager { static final Key AUTOTESTABLE = Key.create("auto.test.manager.supported"); + public static final String AUTO_TEST_MANAGER_DELAY = "auto.test.manager.delay"; private final Project myProject; @@ -37,7 +38,7 @@ public class AutoTestManager { public AutoTestManager(Project project) { myProject = project; myDocumentWatcher = createWatcher(); - myDelay = PropertiesComponent.getInstance(myProject).getOrInitInt("auto.test.manager.delay", 3000); + myDelay = PropertiesComponent.getInstance(myProject).getOrInitInt(AUTO_TEST_MANAGER_DELAY, 3000); } private DelayedDocumentWatcher createWatcher() { @@ -104,5 +105,6 @@ public class AutoTestManager { if (!myEnabledDescriptors.isEmpty()) { myDocumentWatcher.activate(); } + PropertiesComponent.getInstance(myProject).getOrInitInt(AUTO_TEST_MANAGER_DELAY, myDelay); } } \ No newline at end of file