Commit d7774c0e authored by Filip Reaboi's avatar Filip Reaboi
Browse files

Added wrapper code: ICommandStackService.getInstance().runAsCommand(project, () -> {});

refs 2978
parent 1ef48603
......@@ -43,6 +43,7 @@ import org.fortiss.af3.expression.model.terms.impl.VarStaticImpl;
import org.fortiss.af3.state.model.State;
import org.fortiss.af3.state.model.StateAutomaton;
import org.fortiss.af3.state.model.TransitionSegment;
import org.fortiss.tooling.kernel.service.ICommandStackService;
import test.org.fortiss.af3.component.model.ComponentTestModelBase;
......@@ -94,7 +95,9 @@ public class HierarchicalStatesTestModel extends ComponentTestModelBase {
@Override
public void setupModel() {
super.setupModel();
createICarComponent();
ICommandStackService.getInstance().runAsCommand(project, () -> {
createICarComponent();
});
}
/** Creates the component. */
......
......@@ -53,6 +53,7 @@ import org.fortiss.af3.project.model.typesystem.IType;
import org.fortiss.af3.state.model.State;
import org.fortiss.af3.state.model.StateAutomaton;
import org.fortiss.af3.state.model.TransitionSegment;
import org.fortiss.tooling.kernel.service.ICommandStackService;
import test.org.fortiss.af3.component.model.ComponentTestModelBase;
......@@ -173,7 +174,9 @@ public abstract class IntVarBaseOutputTestModel extends ComponentTestModelBase {
@Override
public void setupModel() {
super.setupModel();
createIntVarComponent();
ICommandStackService.getInstance().runAsCommand(project, () -> {
createIntVarComponent();
});
}
/** Creates the integer variable component. */
......
Supports Markdown
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