Skip to content

[ModelLoader] MelangeURI is ignored when executing without animation #13

@fcoulon

Description

@fcoulon

When creating a RunConfiguration 'Gemoc Sequential eXecutable Model' without animation, the engine load a model without caring about the MelangeURI (like '?lang=MyLanguage' )

Seems caused by:

https://github.com/SiriusLab/ModelDebugging/blob/master/framework/execution_framework/plugins/org.gemoc.executionframework.engine/src/org/gemoc/executionframework/engine/commons/ModelExecutionContext.java#L73

https://github.com/SiriusLab/ModelDebugging/blob/master/framework/execution_framework/plugins/org.gemoc.executionframework.extensions.sirius/src/org/gemoc/executionframework/extensions/sirius/modelloader/DefaultModelLoader.java#L87-L98

We should write something like:

boolean useMelange = context.getRunConfiguration().getMelangeQuery() != null
				&& !context.getRunConfiguration().getMelangeQuery().isEmpty();
// calculating model URI as MelangeURI
URI modelURI = useMelange ? context.getRunConfiguration().getExecutedModelAsMelangeURI()
				: context.getRunConfiguration().getExecutedModelURI();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions