Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listIterator() not implemented in melange.adapters.EListAdapter #110

Open
dvojtise opened this issue Mar 9, 2018 · 0 comments
Open

listIterator() not implemented in melange.adapters.EListAdapter #110

dvojtise opened this issue Mar 9, 2018 · 0 comments

Comments

@dvojtise
Copy link
Contributor

dvojtise commented Mar 9, 2018

When loading a model with adapter using Sirius in GEMOC, it proceeds with a classic org.eclipse.emf.ecore.util.EcoreUtil.resolveAll, this call fails because the method listIterator() in fr.inria.diverse.melange.adapters.EListAdapter is not implemented. (https://github.com/diverse-project/melange/blob/master/plugins/fr.inria.diverse.melange.adapters/src/main/java/fr/inria/diverse/melange/adapters/EListAdapter.xtend#L91)

This issue seems blocking for using Melange adapters in GEMOC (see eclipse/gemoc-studio-modeldebugging#27)

java.lang.UnsupportedOperationException
	at fr.inria.diverse.melange.adapters.EListAdapter.listIterator(EListAdapter.java:138)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:463)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:306)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:300)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:285)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:273)
	at org.eclipse.gemoc.executionframework.extensions.sirius.modelloader.DefaultModelLoader.loadModelThenConfigureResourceSet(DefaultModelLoader.java:381)
	at org.eclipse.gemoc.executionframework.extensions.sirius.modelloader.DefaultModelLoader.openNewSiriusSession(DefaultModelLoader.java:234)
	at org.eclipse.gemoc.executionframework.extensions.sirius.modelloader.DefaultModelLoader.loadModel(DefaultModelLoader.java:167)
	at org.eclipse.gemoc.executionframework.extensions.sirius.modelloader.DefaultModelLoader.loadModelForAnimation(DefaultModelLoader.java:128)
	at org.eclipse.gemoc.executionframework.engine.commons.ModelExecutionContext.initializeResourceModel(ModelExecutionContext.java:71)
	at org.eclipse.gemoc.execution.sequential.javaengine.ui.launcher.Launcher.createExecutionEngine(Launcher.java:64)
	at org.eclipse.gemoc.executionframework.engine.ui.launcher.AbstractSequentialGemocLauncher.launch(AbstractSequentialGemocLauncher.java:106)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant