diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 763be33f18cff8..836a569c033401 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -2,6 +2,15 @@ + + + + + + + + + diff --git a/.idea/gitpod.iml b/.idea/gitpod.iml index b7acd9441160bc..a35f756015d636 100644 --- a/.idea/gitpod.iml +++ b/.idea/gitpod.iml @@ -15,7 +15,7 @@ - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 66d956e011c983..f66432ed4ba652 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,7 +6,7 @@ \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 843fe416b6500a..bb4d3843b5c7f3 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -3,6 +3,15 @@ + + + + + + + + + \ No newline at end of file diff --git a/components/ide/jetbrains/backend-plugin/gradle.properties b/components/ide/jetbrains/backend-plugin/gradle.properties index 42fbf8c61900a2..807fa6476d756a 100644 --- a/components/ide/jetbrains/backend-plugin/gradle.properties +++ b/components/ide/jetbrains/backend-plugin/gradle.properties @@ -12,7 +12,7 @@ pluginUntilBuild=221.* pluginVerifierIdeVersions=2021.3, 2022.1 # IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties platformType=IU -platformVersion=221.4994-EAP-CANDIDATE-SNAPSHOT +platformVersion=221-EAP-SNAPSHOT platformDownloadSources=true # Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html # Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 diff --git a/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodGatewayClientCustomizationProvider.kt b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodGatewayClientCustomizationProvider.kt new file mode 100644 index 00000000000000..1b1ee9665f4f5f --- /dev/null +++ b/components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/GitpodGatewayClientCustomizationProvider.kt @@ -0,0 +1,24 @@ +// Copyright (c) 2022 Gitpod GmbH. All rights reserved. +// Licensed under the GNU Affero General Public License (AGPL). +// See License-AGPL.txt in the project root for license information. + +package io.gitpod.jetbrains.remote + +import com.jetbrains.rdserver.unattendedHost.customization.GatewayClientCustomizationProvider +import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.DefaultGatewayControlCenterProvider +import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayControlCenterProvider +import com.jetbrains.rdserver.unattendedHost.customization.controlCenter.GatewayHostnameDisplayKind +import io.gitpod.jetbrains.remote.icons.GitpodIcons +import javax.swing.Icon + +class GitpodGatewayClientCustomizationProvider : GatewayClientCustomizationProvider { + override val icon: Icon = GitpodIcons.Logo + override val title: String = DefaultGatewayControlCenterProvider().getHostnameShort() + + override val controlCenter: GatewayControlCenterProvider = object : GatewayControlCenterProvider { + override fun getHostnameDisplayKind() = GatewayHostnameDisplayKind.ShowHostnameOnNavbar + override fun getHostnameShort() = title + override fun getHostnameLong() = title + } +} + diff --git a/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml b/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml index e30a75b80f350e..96cf8c00b37a58 100644 --- a/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml +++ b/components/ide/jetbrains/backend-plugin/src/main/resources/META-INF/plugin.xml @@ -28,6 +28,7 @@ +