Skip to content

Commit

Permalink
Fix the ActionLink for Gitpod Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
felladrin authored Mar 28, 2022
1 parent 8f3eac4 commit 960723c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import java.awt.Component
import javax.swing.Icon
import javax.swing.JComponent
import com.intellij.ui.components.ActionLink
import com.intellij.ide.BrowserUtil

class GitpodConnector : GatewayConnector {
override val icon: Icon
Expand All @@ -31,7 +32,11 @@ class GitpodConnector : GatewayConnector {
}

override fun getDocumentationLink(): ActionLink {
return ActionLink("https://www.gitpod.io/docs/ides-and-editors/jetbrains-gateway")
val documentationLink = ActionLink("Documentation") {
BrowserUtil.browse("https://www.gitpod.io/docs/ides-and-editors/jetbrains-gateway")
}
documentationLink.setExternalLinkIcon()
return documentationLink
}

override fun getRecentConnections(setContentCallback: (Component) -> Unit): GatewayRecentConnections? {
Expand All @@ -48,4 +53,4 @@ class GitpodConnector : GatewayConnector {

override fun initProcedure() {}

}
}

0 comments on commit 960723c

Please sign in to comment.