Skip to content

Commit 3e99d06

Browse files
committed
change driver to apply all changes in a ModelChangeSet
1 parent d0099bd commit 3e99d06

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

utils/SolutionDriver/src/main/java/atl/research/AbstractDriver.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import Changes.ChangesPackage;
1313
import Changes.ModelChange;
14+
import Changes.ModelChangeSet;
1415
import atl.research.class_.Class_Package;
1516
import atl.research.relational_.Relational_Package;
1617

@@ -84,8 +85,11 @@ private Resource createModel(String modelPath) {
8485
protected void applyChange() {
8586
// we ignore change models that are empty (for checking correctness)
8687
if (changes.getContents().size() > 0) {
87-
ModelChange change = (ModelChange) changes.getContents().get(0);
88-
change.apply();
88+
ModelChangeSet change = (ModelChangeSet) changes.getContents().get(0);
89+
for (ModelChange c : change.getChanges()) {
90+
// System.out.println("Applying change " + c);
91+
c.apply();
92+
}
8993
}
9094
}
9195

0 commit comments

Comments
 (0)