<@U25U0KPFT> this is what how my model looks like ...
# tornadofx
n
@carlw this is what how my model looks like
Copy code
class Diff() {
   val isSingleFileProperty = SimpleBooleanProperty()
   var isSingleFile : Boolean by isSingleFileProperty

   val hasNextRevisionProperty = SimpleBooleanProperty()
   var hasNextRevision : Boolean by hasNextRevisionProperty

    val hasPrevRevisionProperty = SimpleBooleanProperty()
    var hasPrevRevision : Boolean by hasPrevRevisionProperty

    val currentRevisionProperty = SimpleIntegerProperty()
    var currentRevision : Int by currentRevisionProperty
}

class DiffModel : ItemViewModel<Diff>() {

   val isSingleFile = bind { item?.isSingleFileProperty }

   val hasNextRevision = bind { item?.hasNextRevisionProperty }
   val hasPrevRevision = bind { item?.hasNextRevisionProperty }
   val currentRevison = bind { item?.currentRevisionProperty }

}