diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 61a9130..b589d56 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..4251b72 --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 4d2d62d..24a2080 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,7 +4,7 @@ - + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index d73ddd0..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 7df9521..555d454 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,8 +3,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile fun properties(key: String) = project.findProperty(key).toString() plugins { - id("org.jetbrains.intellij") version "1.5.2" - id("org.jetbrains.kotlin.jvm") version "1.6.20" + id("org.jetbrains.intellij") version "1.10.0" + id("org.jetbrains.kotlin.jvm") version "1.7.22" } group = properties("pluginGroup") diff --git a/gradle.properties b/gradle.properties index 6d0e1cf..4179949 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,8 +3,8 @@ kotlin.code.style=official pluginGroup = de.idetools pluginName = filename_template -pluginVersion = 1.2.0-222 -platformVersion = 2022.2 +pluginVersion = 1.2.0-223 +platformVersion = 2022.3 # Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3 javaVersion = 11 diff --git a/src/main/kotlin/de/idetools/filename_template/CreateWithFilenameTemplateDialogPanel.kt b/src/main/kotlin/de/idetools/filename_template/CreateWithFilenameTemplateDialogPanel.kt index 39ef2f1..cf11daf 100644 --- a/src/main/kotlin/de/idetools/filename_template/CreateWithFilenameTemplateDialogPanel.kt +++ b/src/main/kotlin/de/idetools/filename_template/CreateWithFilenameTemplateDialogPanel.kt @@ -5,7 +5,9 @@ import com.intellij.openapi.util.Trinity import javax.swing.Icon class CreateWithFilenameTemplateDialogPanel(templates: List>) : - CreateWithTemplatesDialogPanel(templates, templates.first().first) { + CreateWithTemplatesDialogPanel(templates.first().first, templates.map { + trinity -> TemplatePresentation(trinity.first, trinity.second, trinity.third) + }) { init { updateSelectedText() @@ -15,7 +17,7 @@ class CreateWithFilenameTemplateDialogPanel(templates: List