Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Problem with Linking to library models
Problem with Linking to library models [message #1786193] Thu, 26 April 2018 16:47 Go to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Hi,

I am seeing some strange linking behavior in my project and I am seeking for some help/pointers.

To give some background, I have two DSL's - Function and Model, both having their respective JvmModelInferrer's. The Function DSL is based on Xbase. I have a library project that bundles an array of model DSL files that can be referenced in the Functions. The project also contains the generated Java (.class files) for the Models.

I have two projects (xtext nature), each containing a Function that has a cross-reference to the Model endorsed by the library project. Both projects declare a dependency on the library project.

In one project, when I navigate to the referenced Model, it links to the right Model DSL file and opens the same in the editor. Now, if I do the same in the second project, it links to the generated Java file (java:/Objects/com.myproject.XXModel) and opens it in the Java editor.

In the DSL, I customize the XImportSectionNamespaceScopeProvider (Function DSL) and ImportedNamespaceAwareLocalScopeProvider (Model DSL) to implicitly import the endorsed models. I have also customized the Scope providers.

While debugging, I noticed a difference in the created ResourceSets in the above two projects. In the first project, the resource set contains the Function and the endorsed Models. In the second, it doesn't contain the endorsed Models, which apparently is leading to the issue.

I'll continue investigating the issue. I am writing to check if someone has seen the similar behavior and has some clue/pointers.

PS - I cannot share the source code.

Thanks in advance.


Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj

[Updated on: Thu, 26 April 2018 16:51]

Report message to a moderator

Re: Problem with Linking to library models [message #1786194 is a reply to message #1786193] Thu, 26 April 2018 16:56 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
And you do have the same project and .classpath references in both projects

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problem with Linking to library models [message #1786197 is a reply to message #1786194] Thu, 26 April 2018 17:16 Go to previous messageGo to next message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Yes, same project and .classpath references in both the projects.

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Re: Problem with Linking to library models [message #1786200 is a reply to message #1786197] Thu, 26 April 2018 18:01 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Then I have no idea

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problem with Linking to library models [message #1786201 is a reply to message #1786200] Thu, 26 April 2018 18:03 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
=> i would need a hello world sample reproducing the problem

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problem with Linking to library models [message #1786213 is a reply to message #1786201] Fri, 27 April 2018 02:39 Go to previous message
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 177
Registered: July 2009
Location: Canada
Senior Member
Thanks for your reply, Christian. We seem to have hit this bug - https://bugs.eclipse.org/bugs/show_bug.cgi?id=519528

Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
Previous Topic:DefaultResourceDescriptionManager.isAffected inconsistency when AutoBuild is cancelled
Next Topic:Custom FragmentProvider : issue with Acceleo
Goto Forum:
  


Current Time: Thu Apr 25 08:58:21 GMT 2024

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

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

Back to the top