[devkit] IJPL-188400 Adjust Application and Project state templates

`@Property` is required so far for primitive Kotlin properties

GitOrigin-RevId: e76345cc4140b48f49fb55f2d15277a232e76cf6
This commit is contained in:
Yuriy Artamonov
2026-02-09 19:51:12 +01:00
committed by intellij-monorepo-bot
parent c83d711af5
commit eb7658ee34
2 changed files with 4 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
#end
import com.intellij.openapi.components.*
import com.intellij.configurationStore.Property
#parse("File Header.java")
@Service
@@ -22,5 +23,5 @@ internal class ${NAME}: SerializablePersistentStateComponent<${NAME}State>(${NAM
}
internal data class ${NAME}State(
@JvmField val storeValue: String? = null
@JvmField @Property val storeValue: String? = null // @Property required for primitives
)

View File

@@ -4,6 +4,7 @@
#end
import com.intellij.openapi.components.*
import com.intellij.openapi.project.Project
import com.intellij.configurationStore.Property
#parse("File Header.java")
@Service(Service.Level.PROJECT)
@@ -23,5 +24,5 @@ internal class ${NAME}(private val project: Project): SerializablePersistentStat
}
internal data class ${NAME}State(
@JvmField val storeValue: String? = null
@JvmField @Property val storeValue: String? = null // @Property required for primitives
)