Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Referenced Ecore elements from other grammar are not resolved
Referenced Ecore elements from other grammar are not resolved [message #1559555] Mon, 12 January 2015 04:35 Go to next message
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 39
Registered: January 2015
Member
Hello,
I have a grammar A and grammar B. Grammar B is using grammar A .
When XText invokes my IGenerator module and passes in the resource, all referenced Elements and attributes of B are resolved fine.
However I am trying to invoke the generator from another plugin from a context menu. For this I followed the blog "Calling the Generator from a Context Menu" (christiandietrich.wordpress.com).
With this approach the referenced attributes of grammar A are not resolved properly.
It seems like the injected IResourceSetProvider in the code is not aware of the resource B, therefore elements from there cannot be resolved.

Does anyone come across the same problem and have a solution for this?

Thank you in advance!
Re: Referenced Ecore elements from other grammar are not resolved [message #1560431 is a reply to message #1559555] Mon, 12 January 2015 15:50 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hi,

can you share a complete example i can download and analyse?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:MyDslEditor Contextual Menu Items
Next Topic:Run/Debug as Java application for Xbase languages
Goto Forum:
  


Current Time: Fri Apr 26 04:54:49 GMT 2024

Powered by FUDForum. Page generated in 0.02835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top