Commit b9186630 authored by hm-schuhba1's avatar hm-schuhba1

Use ProjectOutput instead of direct I/O

parent bb976657
......@@ -17,7 +17,7 @@ public class OutputFileTableModel extends VadereTableModelSorted<File> {
@Override
public void init(final VadereProject project) {
super.init(project);
List<File> outputFileNames = IOOutput.listAllOutputDirs(project);
List<File> outputFileNames = project.getProjectOutput().getAllOutputDirs();
setColumnCount(1);
setRowCount(0);
outputFileNames.forEach(p -> insertValue(p));
......
......@@ -197,14 +197,14 @@ public class ProjectViewModel {
public ScenarioBundle getRunningScenario() {
Scenario scenarioRM = project.getCurrentScenario();
List<String> outputDirectories = IOOutput.listSelectedOutputDirs(project, scenarioRM)
List<String> outputDirectories = project.getProjectOutput().listSelectedOutputDirs(scenarioRM)
.stream().map(file -> file.getAbsolutePath()).collect(Collectors.toList());
return new ScenarioBundle(project, scenarioRM, outputDirectories);
}
public ScenarioBundle getSelectedScenarioBundle() {
Scenario scenarioRM = getSelectedScenarioRunManager();
List<String> outputDirectories = IOOutput.listSelectedOutputDirs(project, scenarioRM)
List<String> outputDirectories = project.getProjectOutput().listSelectedOutputDirs(scenarioRM)
.stream().map(file -> file.getAbsolutePath()).collect(Collectors.toList());
return new ScenarioBundle(project, scenarioRM, outputDirectories);
}
......@@ -264,7 +264,7 @@ public class ProjectViewModel {
@Override
public void run() {
fireRefreshOutputStarted();
IOOutput.cleanOutputDirs(project);
project.getProjectOutput().cleanOutputDirs();
outputTableModel.init(project);
fireRefreshOutputCompleted();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment