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

Line 61, added code:

ICommandStackService.getInstance().runAsCommand(project, () -> {
			dd = findDataDictionary(project, "Data Dictionary");
		});

refs 2978
parent e5e34129
......@@ -28,8 +28,11 @@ import org.fortiss.af3.expression.model.DataDictionary;
import org.fortiss.af3.expression.model.definitions.Enumeration;
import org.fortiss.af3.expression.model.definitions.EnumerationMember;
import org.fortiss.af3.expression.model.terms.FunctionCall;
import org.fortiss.af3.expression.utils.ExpressionModelElementFactory;
import org.fortiss.af3.project.model.FileProject;
import org.fortiss.af3.project.model.typesystem.ITerm;
import org.fortiss.af3.project.model.typesystem.ITypeSystem;
import org.fortiss.tooling.kernel.service.ICommandStackService;
import test.org.fortiss.af3.project.ProjectTestModelBase;
......@@ -54,7 +57,22 @@ public abstract class ExpressionTestModelBase extends ProjectTestModelBase {
@Override
public void setupModel() {
super.setupModel();
// dd = findDataDictionary(project, "Data Dictionary");
ICommandStackService.getInstance().runAsCommand(project, () -> {
dd = findDataDictionary(project, "Data Dictionary");
});
}
/** {@inheritDoc} */
@Override
protected void customizeProjectBeforeRegistering(FileProject fileProject) {
super.customizeProjectBeforeRegistering(fileProject);
DataDictionary newDD = ExpressionModelElementFactory.createDataDictionary();
newDD.setName("Data Dictionary");
// ICommandStackService.getInstance().runAsCommand(fileProject, () -> {
// project.getRootElements().add(newDD);
// });
fileProject.getRootElements().add(newDD);
}
/** {@inheritDoc} */
......
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