Finished refactoring
This commit is contained in:
parent
42890d81c9
commit
2c6f466616
@ -299,9 +299,13 @@ public class NumassWorkbenchController implements Initializable, StagePaneHolder
|
|||||||
clearAllStages();
|
clearAllStages();
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
DataNode data = new FileDataFactory().build(getContext(), getDataConfiguration());
|
DataNode data = new FileDataFactory().build(getContext(), getDataConfiguration());
|
||||||
|
if(data.isEmpty()){
|
||||||
|
//FIXME evaluate error here
|
||||||
|
throw new Error("Empty data");
|
||||||
|
}
|
||||||
Action action = RunManager.readAction(getContext(), getActionConfiguration());
|
Action action = RunManager.readAction(getContext(), getActionConfiguration());
|
||||||
// action.addListener(this);
|
// action.addListener(this);
|
||||||
action.run(data);
|
action.run(data).compute();
|
||||||
Platform.runLater(() -> statusBar.setText("Execution complete"));
|
Platform.runLater(() -> statusBar.setText("Execution complete"));
|
||||||
}, "actions").start();
|
}, "actions").start();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user