``` button("Rerun") { setOnAction { pa...
# tornadofx
a
Copy code
button("Rerun") {
    setOnAction {
        pages.forEach {page ->
            if (page.dirtyState) {
                page.file.printWriter().use {
                    out -> out.println(page.script)
                 }
            }
      }
      runAsync {
         page.results =   scope.registry.getResultOrExec(page.pageName).toString()
        } ui {
             evaluationText = text(page.results)
        }
    }
}