diff --git a/src/main/kotlin/com/github/lppedd/cc/configuration/component/ActionLinkLabel.kt b/src/main/kotlin/com/github/lppedd/cc/configuration/component/ActionLinkLabel.kt new file mode 100644 index 00000000..79838009 --- /dev/null +++ b/src/main/kotlin/com/github/lppedd/cc/configuration/component/ActionLinkLabel.kt @@ -0,0 +1,13 @@ +package com.github.lppedd.cc.configuration.component + +import com.intellij.ui.components.labels.LinkLabel +import com.intellij.ui.components.labels.LinkListener + +/** + * @author Edoardo Luppi + */ +internal class ActionLinkLabel(label: String, listener: LinkListener) : LinkLabel(label, null) { + init { + setListener(listener, null) + } +} diff --git a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt index 767e9eab..5016dc66 100644 --- a/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt +++ b/src/main/kotlin/com/github/lppedd/cc/configuration/holders/DefaultsFileExportHolder.kt @@ -2,6 +2,7 @@ package com.github.lppedd.cc.configuration.holders import com.github.lppedd.cc.CCBundle import com.github.lppedd.cc.CCConstants +import com.github.lppedd.cc.configuration.component.ActionLinkLabel import com.github.lppedd.cc.configuration.component.ComponentHolder import com.github.lppedd.cc.getResourceAsStream import com.intellij.openapi.application.runWriteAction @@ -57,13 +58,4 @@ internal class DefaultsFileExportHolder : ComponentHolder, LinkListener { exportInfo.text = CCBundle["cc.config.defaults.exportToPath.completed"] } } - - private class ActionLinkLabel( - label: String, - listener: LinkListener - ) : LinkLabel(label, null) { - init { - setListener(listener, null) - } - } }