Make plugin compatible with idea version 2024.1
This commit is contained in:
parent
86c2723df2
commit
49b94aae69
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="KotlinJpsPluginSettings">
|
||||
<option name="version" value="1.9.0" />
|
||||
<option name="version" value="1.9.21" />
|
||||
</component>
|
||||
</project>
|
||||
|
|
@ -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.15.0"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.9.0"
|
||||
id("org.jetbrains.intellij") version "1.17.3"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.9.21"
|
||||
}
|
||||
|
||||
group = properties("pluginGroup")
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ kotlin.code.style=official
|
|||
|
||||
pluginGroup = de.idetools
|
||||
pluginName = filename_template
|
||||
pluginVersion = 1.2.0-233
|
||||
platformVersion = 2023.3
|
||||
pluginVersion = 1.2.0-241
|
||||
platformVersion = 2024.1
|
||||
|
||||
# Java language level used to compile sources and to generate the files for - Java 11 is required since 2020.3
|
||||
javaVersion = 17
|
||||
|
|
|
|||
|
|
@ -14,10 +14,11 @@ import de.idetools.filename_template.placeholders.*
|
|||
import de.idetools.filename_template.settings.FilenameTemplateSettingsState
|
||||
import java.awt.event.InputEvent
|
||||
import java.util.function.Consumer
|
||||
import java.util.function.Supplier
|
||||
import kotlin.math.max
|
||||
|
||||
class CreateFileWithFilenameTemplateAction :
|
||||
CreateFileAction("Filename Template", "Create a new file based on template", AllIcons.Actions.AddFile) {
|
||||
CreateFileAction(Supplier { "Filename Template"}, Supplier { "Create a new file based on template"}, Supplier { AllIcons.Actions.AddFile }) {
|
||||
|
||||
private val placeholders: List<Placeholder> = listOf(
|
||||
EpochPlaceholder(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user