Closed abelhegedus closed 11 years ago
Promoting this to 0.6.8 as it is an important bugfix.
@ujhelyiz or @okrosa someone please take a look.
How important is to fix this before the next weekend (2012.11.17)? If it is enough to do it then, I can do it (it seems reasonably easy to fix it). However, I do not want to think about all possible side-effects changing the resolution mechanism before that.
@okrosa please take a look at this issue as @ujhelyiz doesn't have time for it now.
I made some minor changes and now the imports are working fine. @abelhegedus please try if it works for you now! (I have no idea whether I introduced some side-effects as well or not.)
It works for me as well, thanks!
Cherry pick completed.
When trying to import EPackages that are nested (see gtasm model :smiley: ), only the toplevel package can be imported, the others are missing from the content assist list.
Additionally, manually entering the nsUri doesn't help either (so not content assist bug, but genmodel provider).
The relavant method is GenModelMetamodelProviderService.getAllMetamodelObjects(Eobject ctx), https://github.com/ujhelyiz/EMF-IncQuery/blob/master/plugins/org.eclipse.viatra2.emf.incquery.tooling.generator/src/org/eclipse/viatra2/emf/incquery/tooling/generator/genmodel/GenModelMetamodelProviderService.java#L103
You can see, that at line 103, only the toplevel GenPackage is selected, the GenPackage.getNestedGenPackages is not called.