mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[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:
committed by
intellij-monorepo-bot
parent
c83d711af5
commit
eb7658ee34
@@ -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
|
||||
)
|
||||
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user