Revert "Convert PyWelcomeSettings into a light service to simplify its registration...
authorVladimir Lagunov <vladimir.lagunov@jetbrains.com>
Tue, 11 Aug 2020 04:07:24 +0000 (11:07 +0700)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Tue, 11 Aug 2020 04:38:10 +0000 (04:38 +0000)
This reverts commit d1a63c43

IDEA-CR-65929

GitOrigin-RevId: ef022f3a971166768091e59767d232bf0797f0ea

python/ide/impl/resources/META-INF/pycharm-community-customization.xml
python/ide/impl/src/com/jetbrains/python/newProject/welcome/PyWelcomeSettings.kt

index fbe3970732e0d7694e1688d40754dbc9289b3b6a..bd03f16af462239af4953e71971a6b7156d16f2f 100644 (file)
@@ -68,6 +68,8 @@
                 factoryClass="com.jetbrains.python.console.PythonConsoleToolWindowFactory" secondary="false"/>
 
     <directoryIndexExcludePolicy implementation="com.jetbrains.python.PyDirectoryIndexExcludePolicy"/>
+
+    <applicationService serviceImplementation="com.jetbrains.python.newProject.welcome.PyWelcomeSettings"/>
     <statistics.counterUsagesCollector implementationClass="com.jetbrains.python.newProject.welcome.PyWelcomeCollector"/>
   </extensions>
 
index 99f3f16a1090f14b8031d55b34b4e384a6a50ee9..c434a07f0fe03363f7bb1022bc02b5ac4eed1ed8 100644 (file)
@@ -1,10 +1,12 @@
 // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
 package com.jetbrains.python.newProject.welcome
 
-import com.intellij.openapi.components.*
+import com.intellij.openapi.components.PersistentStateComponent
+import com.intellij.openapi.components.ServiceManager
+import com.intellij.openapi.components.State
+import com.intellij.openapi.components.Storage
 import com.intellij.util.xmlb.XmlSerializerUtil
 
-@Service
 @State(name = "PyWelcomeSettings", storages = [Storage("pyWelcome.xml")], reportStatistic = true)
 class PyWelcomeSettings : PersistentStateComponent<PyWelcomeSettings.State> {
   companion object {