From 6cae020d38939a4d599d6f2e1102461d5d305f31 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 27 Jul 2026 10:21:42 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E8=87=B3=200.9.0=EF=BC=8C=E6=94=AF=E6=8F=B4=20IntelliJ=20IDEA?= =?UTF-8?q?=202026.x=EF=BC=8C=E8=AA=BF=E6=95=B4=E7=9B=B8=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E8=A8=AD=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 ++ gradle.properties | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 485afae..d4fa5d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ ## [Unreleased] +- Supports new versions of JetBrains IDEs. + ## [0.8.0] - 2026-07-27 - Supports new versions of JetBrains IDEs. diff --git a/gradle.properties b/gradle.properties index 43f2c07..114250f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,15 +4,15 @@ pluginGroup = com.github.leondevlifelog.gitea pluginName = Gitea pluginRepositoryUrl = https://github.com/LeonDevLifeLog/gitea-idea-plugin # SemVer format -> https://semver.org -pluginVersion=0.8.0 +pluginVersion=0.9.0 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html -pluginSinceBuild=242 +pluginSinceBuild=261 pluginUntilBuild = 261.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = IC -platformVersion = 2024.2 +platformVersion = 2026.1 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP From 1e0bdf099ee3406cd62b3b346de6dfb1663c7ae6 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 27 Jul 2026 10:35:06 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20platformVersion=20?= =?UTF-8?q?=E8=87=B3=202025.3=EF=BC=8C=E4=BB=A5=E7=A2=BA=E4=BF=9D=E8=88=87?= =?UTF-8?q?=20IntelliJ=20IDEA=20=E7=9A=84=E7=9B=B8=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 114250f..2f51c28 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ pluginUntilBuild = 261.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = IC -platformVersion = 2026.1 +platformVersion = 2025.3 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP From bc4626d4f9d3cff98f5ec6a684ac2a2d8dbfe900 Mon Sep 17 00:00:00 2001 From: Leon Date: Mon, 27 Jul 2026 10:40:26 +0000 Subject: [PATCH 3/4] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20gradle.properties?= =?UTF-8?q?=EF=BC=8C=E8=AA=BF=E6=95=B4=20pluginSinceBuild=20=E5=92=8C=20pl?= =?UTF-8?q?uginUntilBuild=20=E4=BB=A5=E6=94=AF=E6=8F=B4=20IntelliJ=20IDEA?= =?UTF-8?q?=202024.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 2f51c28..b0b2d07 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,12 +7,12 @@ pluginRepositoryUrl = https://github.com/LeonDevLifeLog/gitea-idea-plugin pluginVersion=0.9.0 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html -pluginSinceBuild=261 -pluginUntilBuild = 261.* +pluginSinceBuild=242 +pluginUntilBuild = 262.* # IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension platformType = IC -platformVersion = 2025.3 +platformVersion = 2024.2 # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.jetbrains.php:203.4449.22, org.intellij.scala:2023.3.27@EAP From 0a6002329d33951c3a6d75858a54f99a5b592116 Mon Sep 17 00:00:00 2001 From: Leon Date: Sun, 2 Aug 2026 15:02:07 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20IDEA=202026.2=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E9=AA=8C=E8=AF=81=E5=A4=B1=E8=B4=A5=E7=9A=84?= =?UTF-8?q?=E5=86=85=E9=83=A8=20API=20=E7=94=A8=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - OpenProjectListener: 用 PluginAwareClassLoader 获取插件版本,替换 PluginManagerCore.getPlugin - CloneDialogLoginPanel: IdeBundle.message 改为 GiteaBundle.message,避免使用平台内部消息 - GiteaBundle.properties: 新增 button.back / link.cancel key Co-Authored-By: Claude Fable 5 --- .../leondevlifelog/gitea/listeners/OpenProjectListener.kt | 8 ++++---- .../gitea/ui/clone/CloneDialogLoginPanel.kt | 5 ++--- src/main/resources/messages/GiteaBundle.properties | 2 ++ 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/com/github/leondevlifelog/gitea/listeners/OpenProjectListener.kt b/src/main/kotlin/com/github/leondevlifelog/gitea/listeners/OpenProjectListener.kt index 2436b15..c4b1528 100644 --- a/src/main/kotlin/com/github/leondevlifelog/gitea/listeners/OpenProjectListener.kt +++ b/src/main/kotlin/com/github/leondevlifelog/gitea/listeners/OpenProjectListener.kt @@ -7,16 +7,16 @@ package com.github.leondevlifelog.gitea.listeners import com.github.leondevlifelog.gitea.GiteaConfig import com.github.leondevlifelog.gitea.util.GiteaNotifications -import com.intellij.ide.plugins.PluginManagerCore +import com.intellij.ide.plugins.cl.PluginAwareClassLoader import com.intellij.ide.util.RunOnceUtil -import com.intellij.openapi.extensions.PluginId import com.intellij.openapi.project.Project import com.intellij.openapi.startup.ProjectActivity class OpenProjectListener : ProjectActivity { override suspend fun execute(project: Project) { - val gitea = PluginManagerCore.getPlugin(PluginId.getId(GiteaConfig.GITEA_PLUGIN_ID)) - RunOnceUtil.runOnceForApp(GiteaConfig.GITEA_PLUGIN_ID + gitea?.version) { + val version = (OpenProjectListener::class.java.classLoader + as? PluginAwareClassLoader)?.pluginDescriptor?.version + RunOnceUtil.runOnceForApp(GiteaConfig.GITEA_PLUGIN_ID + version) { GiteaNotifications.showStarMe(project) } } diff --git a/src/main/kotlin/com/github/leondevlifelog/gitea/ui/clone/CloneDialogLoginPanel.kt b/src/main/kotlin/com/github/leondevlifelog/gitea/ui/clone/CloneDialogLoginPanel.kt index e6dc69a..0fb02ec 100644 --- a/src/main/kotlin/com/github/leondevlifelog/gitea/ui/clone/CloneDialogLoginPanel.kt +++ b/src/main/kotlin/com/github/leondevlifelog/gitea/ui/clone/CloneDialogLoginPanel.kt @@ -9,7 +9,6 @@ import com.github.leondevlifelog.gitea.GiteaBundle import com.github.leondevlifelog.gitea.authentication.accounts.GiteaAccount import com.github.leondevlifelog.gitea.authentication.accounts.GiteaAccountManager import com.github.leondevlifelog.gitea.ui.GiteaLoginPanel -import com.intellij.ide.IdeBundle import com.intellij.openapi.Disposable import com.intellij.openapi.actionSystem.ActionUpdateThread import com.intellij.openapi.actionSystem.AnActionEvent @@ -58,7 +57,7 @@ internal class CloneDialogLoginPanel(private val account: GiteaAccount?) : } private val inlineCancelPanel = simplePanel() private val loginButton = JButton(GiteaBundle.message("clone.dialog.button.login.mnemonic")) - private val backLink = LinkLabel(IdeBundle.message("button.back"), null).apply { + private val backLink = LinkLabel(GiteaBundle.message("button.back"), null).apply { verticalAlignment = SwingConstants.CENTER } @@ -111,7 +110,7 @@ internal class CloneDialogLoginPanel(private val account: GiteaAccount?) : private fun setupNewUi(isOAuth: Boolean) { loginButton.isVisible = !isOAuth - backLink.text = if (isOAuth) IdeBundle.message("link.cancel") else IdeBundle.message("button.back") + backLink.text = if (isOAuth) GiteaBundle.message("link.cancel") else GiteaBundle.message("button.back") loginPanel.footer = { if (!isOAuth) buttonPanel() } // footer is used to put buttons in 2-nd column - align under text boxes diff --git a/src/main/resources/messages/GiteaBundle.properties b/src/main/resources/messages/GiteaBundle.properties index d6ea832..3c809ae 100644 --- a/src/main/resources/messages/GiteaBundle.properties +++ b/src/main/resources/messages/GiteaBundle.properties @@ -58,3 +58,5 @@ account.choose.not.selected=Not selected account github.star.me=Give Gitea Plugin a star on GitHub github.goto.star.it=Goto Star It github.made.with.love=Made with love!!! Your star helps me a lot!!! +button.back=Back +link.cancel=Cancel