Skip to content

Commit

Permalink
Merge pull request #33 from axonivy-market/s17
Browse files Browse the repository at this point in the history
fix: comply with ivy-core sprint 17 interfaces of 'project'
  • Loading branch information
ivy-rew authored Oct 17, 2023
2 parents 23c6cac + a0eb746 commit ebc4413
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions dmn-decision-table/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Require-Bundle: ch.ivyteam.ivy.components,
ch.ivyteam.ivy.designer.inscription.ui;resolution:=optional,
ch.ivyteam.swt;resolution:=optional,
ch.ivyteam.ivy.process.config,
ch.ivyteam.ivy.scripting.dataclass,
ch.ivyteam.icons;resolution:=optional,
ch.ivyteam.lib.jackson;resolution:=optional,
ch.ivyteam.lib.jaxb;resolution:=optional,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

import ch.ivyteam.icons.Size;
import ch.ivyteam.ivy.designer.ui.attribute.SelectAttributeDialog;
import ch.ivyteam.ivy.project.IIvyProject;
import ch.ivyteam.ivy.project.model.Project;
import ch.ivyteam.ivy.scripting.dataclass.IDataClassManager;
import ch.ivyteam.ivy.scripting.language.IIvyScriptContext;
import ch.ivyteam.ivy.scripting.language.IIvyScriptEngine;
import ch.ivyteam.ivy.scripting.language.IvyScriptContextFactory;
Expand Down Expand Up @@ -226,9 +226,10 @@ private static IVariable[] getSampleScriptContext() {
return new IVariable[] {};
}

public void setProject(IIvyProject ivyProject) {
scriptEngine = ivyProject.getIvyScriptEngine();
project = ivyProject.project();
public void setProject(Project project) {
this.project = project;
var data = IDataClassManager.instance().getProjectDataModelFor(project);
scriptEngine = data.getIvyScriptEngine();
}

}

0 comments on commit ebc4413

Please sign in to comment.