No elements in the index when doing Project Clean [message #1741748] |
Mon, 29 August 2016 09:07 |
Oleg Cohen Messages: 34 Registered: August 2016 |
Member |
|
|
Greetings,
I have an issue when I am doing project Clean and a full rebuild commences. When I infer types I need to look up in the global index to find an element. I do it this way:
resourceDescriptions.getExportedObjects(MyDslPackage.Literals.TYPE_X, elementQualifiedName, false).forEach [
var typeXObject = EcoreUtil.resolve(it.getEObjectOrProxy(), modelElement.eResource.resourceSet) as Type_X
]
When I invoke a build manually or modify/save a model file all works fine and the elements are found in the index.
When I run Project Clean, it cleans up the generated sources folder and then starts a full build. At that point the index isn't populated.
resourceDescriptions is wired into the Inferrer in the following way:
@Inject IResourceDescriptions resourceDescriptions
I would appreciate guidance on how to fix the issue.
Best regards,
Oleg Cohen
[Updated on: Mon, 29 August 2016 09:09] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01971 seconds