Wizard: remove unused project tags

This commit is contained in:
Ilya Kirillov
2020-03-20 13:48:27 +03:00
parent d2c8ca9230
commit 24d53d5d08
4 changed files with 4 additions and 65 deletions
@@ -67,7 +67,7 @@ class TemplateDescriptionComponent : Component() {
}
fun setTemplate(template: ProjectTemplate) {
descriptionLabel.text = template.htmlDescription
descriptionLabel.text = template.description
}
override val component: JComponent = descriptionLabel
@@ -1,6 +1,5 @@
package org.jetbrains.kotlin.tools.projectWizard.wizard.ui
import TemplateTag
import com.intellij.icons.AllIcons
import com.intellij.ide.plugins.newui.TagComponent
import com.intellij.openapi.actionSystem.ActionManager
@@ -181,15 +180,6 @@ fun <C : JComponent> C.addBorder(border: Border): C = apply {
this.border = BorderFactory.createCompoundBorder(border, this.border)
}
class TemplateTagUIComponent(tag: TemplateTag) : TagComponent(tag.text) {
override fun isInClickableArea(pt: Point?) = false
init {
RelativeFont.TINY.install(this)
tag.tooltip?.let { toolTipText = it }
}
}
fun <T> runWithProgressBar(title: String, action: () -> T): T =
ProgressManager.getInstance().runProcessWithProgressSynchronously(
ThrowableComputable<T, Exception> { action() },