[idea] refactoring: extract and reuse common implementation of ExternalProductResourceUrls (IJPL-204)

It appears that IDEA Community and Ultimate use the same external URLs, so it doesn't make to have two different implementations of ExternalProductResourceUrls for them. So intellij.idea.customization.base module is introduced to define the common IntelliJIdeaExternalResourceUrls implementation.

GitOrigin-RevId: 997596458fb391b7033e11a9c15851e72cfeaef1
This commit is contained in:
Nikolay Chashnikov
2023-08-21 10:29:28 +02:00
committed by intellij-monorepo-bot
parent 129eb5e3fd
commit 8149d16d1b
6 changed files with 22 additions and 5 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="com.intellij.idea.customization.base" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="intellij.platform.ide.impl" />
</component>
</module>

View File

@@ -0,0 +1,15 @@
// 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.idea.customization.base
import com.intellij.platform.ide.impl.customization.BaseJetBrainsExternalProductResourceUrls
class IntelliJIdeaExternalResourceUrls : BaseJetBrainsExternalProductResourceUrls() {
override val basePatchDownloadUrl: String
get() = "https://download.jetbrains.com/idea/"
override val youtrackProjectId: String
get() = "IDEA"
override val shortProductNameUsedInForms: String
get() = "IDEA"
}