[Editor] Refactor ProjectVM
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user