You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* handle resourceSet created by Sirius session
in some situations, the resourceSet we create is not used by Sirius for
its session.
In that case, we need to load the model from this resourceSet instead o
the one we created.
* warning if using both melange query and sirius returns a new resourceSet
Signed-off-by: Didier Vojtisek <[email protected]>
Copy file name to clipboardExpand all lines: framework/execution_framework/plugins/org.eclipse.gemoc.executionframework.extensions.sirius/src/org/eclipse/gemoc/executionframework/extensions/sirius/modelloader/DefaultModelLoader.java
// the session has created a different resourceSet than the one we provided
174
+
//we need to use the resource from it instead of the one from our resourceSet
175
+
// TODO check if this is still compatible with melange
176
+
// TODO maybe some simplification is possible !
177
+
if(useMelange) {
178
+
Activator.getDefault().getLog().log(newStatus(IStatus.WARNING, Activator.PLUGIN_ID, "Sirius Session returned a new ResourceSet and you are using a melange query, this scenario has not been validated yet", newException()));
179
+
}
180
+
for (Resourcer : session.getTransactionalEditingDomain().getResourceSet().getResources()) {
0 commit comments