[platform] refactoring: move IntelliJIdeaUpdateStrategyCustomization to platform (IJPL-204)

There are other IDEs that enable showWhatIsNewPageAfterUpdate option, so it's better to reuse the implementation.

GitOrigin-RevId: 64aa54c0a088f920d00c09d7c0eca09861b3b553
This commit is contained in:
Nikolay Chashnikov
2023-09-18 08:40:21 +02:00
committed by intellij-monorepo-bot
parent 93093eaa9a
commit 2dab26b9c4
3 changed files with 10 additions and 9 deletions

View File

@@ -20,7 +20,7 @@
serviceImplementation="com.intellij.idea.customization.base.IntelliJIdeaExternalResourceUrls"
overrides="true"/>
<applicationService serviceInterface="com.intellij.openapi.updateSettings.UpdateStrategyCustomization"
serviceImplementation="com.intellij.idea.customization.base.IntelliJIdeaUpdateStrategyCustomization"
serviceImplementation="com.intellij.openapi.updateSettings.base.ShowWhatIsNewPageAfterUpdateCustomization"
overrides="true"/>
</extensions>
</idea-plugin>

View File

@@ -1,8 +0,0 @@
package com.intellij.idea.customization.base
import com.intellij.openapi.updateSettings.UpdateStrategyCustomization
class IntelliJIdeaUpdateStrategyCustomization : UpdateStrategyCustomization() {
override val showWhatIsNewPageAfterUpdate: Boolean
get() = true
}

View File

@@ -0,0 +1,9 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.updateSettings.base
import com.intellij.openapi.updateSettings.UpdateStrategyCustomization
class ShowWhatIsNewPageAfterUpdateCustomization : UpdateStrategyCustomization() {
override val showWhatIsNewPageAfterUpdate: Boolean
get() = true
}