[Editor] Refactor ProjectVM

This commit is contained in:
2021-02-26 21:53:09 +01:00
parent d0c474339c
commit 04d6f6d898

View File

@@ -1,14 +1,19 @@
package com.bartlomiejpluta.base.editor.project.viewmodel
import com.bartlomiejpluta.base.editor.project.model.Project
import tornadofx.*
import tornadofx.ItemViewModel
class ProjectVM(project: Project) : ItemViewModel<Project>(project) {
val nameProperty = bind(Project::nameProperty)
val name by nameProperty
val sourceDirectoryProperty = bind(Project::sourceDirectoryProperty)
val sourceDirectory by sourceDirectoryProperty
val maps = bind(Project::maps)
val projectFileProperty = bind(Project::projectFileProperty)
val mapsDirectoryProperty = bind(Project::mapsDirectoryProperty)
val tileSetsDirectoryProperty = bind(Project::tileSetsDirectoryProperty)
val imagesDirectoryProperty = bind(Project::imagesDirectoryProperty)
val codeDirectoryProperty = bind(Project::codeDirectoryProperty)
val codeFSNodeProperty = bind(Project::codeFSNodeProperty)
val buildDirectoryProperty = bind(Project::buildDirectoryProperty)
val buildClassesDirectoryProperty = bind(Project::buildClassesDirectoryProperty)
val buildOutDirectoryProperty = bind(Project::buildOutDirectoryProperty)
val buildOutputJarFileProperty = bind(Project::buildOutputJarFileProperty)
}