Skip to content

Commit 85694fc

Browse files
committed
[IMP] add configuration wiki link in settings
1 parent 3b889a5 commit 85694fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/kotlin/com/odoo/odools/OdooLSPathConfigurable.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.odoo.odools
22

3+
import com.intellij.ide.BrowserUtil
34
import com.intellij.openapi.fileChooser.FileChooserDescriptor
45
import com.intellij.openapi.options.Configurable
56
import com.intellij.openapi.ui.TextFieldWithBrowseButton
67
import com.intellij.ui.JBColor
8+
import com.intellij.ui.components.ActionLink
79
import com.intellij.ui.components.JBLabel
810
import javax.swing.JComponent
911
import javax.swing.JPanel
@@ -44,13 +46,21 @@ class OdooLSPathConfigurable : Configurable {
4446
<html>
4547
<body style='width: 500px; color: gray;'>
4648
The plugin will use this path to install needed resources and logs.<br>
49+
OdooLS is configures through configuration files. To create one, please refer to our wiki:
4750
</body>
4851
</html>
4952
""".trimIndent()
5053
)
5154
description.font = description.font.deriveFont(description.font.size2D - 1f)
5255
description.foreground = JBColor.GRAY
5356
container.add(description, gbc)
57+
val externalLink = ActionLink("The configuration wiki") {
58+
BrowserUtil.browse("https://github.com/odoo/odoo-ls/wiki/3.-Configuration-files")
59+
}.apply {
60+
setContextHelpIcon()
61+
}
62+
gbc.gridy = 3
63+
container.add(externalLink, gbc)
5464

5565
//outerPanel to keep everything at top of the window
5666
val outerPanel = JPanel(BorderLayout())

0 commit comments

Comments
 (0)