Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8aeb13980 | |||
| fd23d0b19c | |||
| 438d7f03a8 | |||
| ca49a5a8d5 | |||
| 6d52f12b68 | |||
| e0e7327b15 | |||
| d47039d7b9 | |||
| 82b9694552 |
|
|
@ -1,4 +1,4 @@
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
|
|
||||||
pluginVersion = 1.2.0-211
|
pluginVersion = 1.2.0-193
|
||||||
platformVersion = 2021.1
|
platformVersion = 2019.3
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import java.util.function.Consumer
|
||||||
import kotlin.math.max
|
import kotlin.math.max
|
||||||
|
|
||||||
class CreateFileWithFilenameTemplateAction :
|
class CreateFileWithFilenameTemplateAction :
|
||||||
CreateFileAction("Filename Template", "Create a new file based on template", AllIcons.Actions.AddFile) {
|
CreateFileAction("Filename Template", "Create a new file based on template", AllIcons.FileTypes.AddAny) {
|
||||||
|
|
||||||
private val placeholders: List<Placeholder> = listOf(
|
private val placeholders: List<Placeholder> = listOf(
|
||||||
EpochPlaceholder(),
|
EpochPlaceholder(),
|
||||||
|
|
@ -55,7 +55,7 @@ class CreateFileWithFilenameTemplateAction :
|
||||||
val templates = settings.filenameTemplates
|
val templates = settings.filenameTemplates
|
||||||
.filter { it.isActive }
|
.filter { it.isActive }
|
||||||
.map {
|
.map {
|
||||||
Trinity(it.title, AllIcons.Actions.AddFile, processTemplate(it.template, project, directory))
|
Trinity(it.title, AllIcons.FileTypes.AddAny, processTemplate(it.template, project, directory))
|
||||||
}
|
}
|
||||||
val validator: MyInputValidator = MyValidator(project, directory)
|
val validator: MyInputValidator = MyValidator(project, directory)
|
||||||
val contentPanel = CreateWithFilenameTemplateDialogPanel(templates)
|
val contentPanel = CreateWithFilenameTemplateDialogPanel(templates)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user