Trying to resolve all cross-references of an EObject model from an .aadl file. [message #1855767] |
Wed, 02 November 2022 11:27  |
Eclipse User |
|
|
|
I am currently working on a standalone java plugin to get an .aadl file and convert it to an XMI model. I am using OSATE pluggings and libraries and want to reproduce this feature. The problem I am struggling with is with the intent to resolve all cross references. The plugging works fine with a simple addl model with no cross reference. When I call resolveAll() from the EObject instance nothing happens. And with this, the following instantiation and conversion fails. When I load the project in OSATE it resolves all cross references. Does anyone have any useful information to help me in the process. ?
I think one of the things may be the fact that when I open the project in OSATE it takes the whole folder with all the .addl files. And the program I am developing just takes the path of the .addl file and tries to get the conversion.
But if that would be the case , I dont have ideo how to address this problem.
These are the libraries I'm using:

This is a important part of the process:

Here is how i inject the model from the .addl file given by a global path to it.
After i call the EcoreUtil.resolveAll(rsrc); -> In order to resolve all the CROSS-References
One I instantiate the Resource element I get the EObject element that correspond to (AadlPackage).
There is a validateFunction from the "org.eclipse.xtext.validation.IResourceValidator", where i perform the validation process and collect the information about what is going wrong with the model.
This is the ouput that i got:

This is the example .addl model loaded into OSATE:

|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05246 seconds