"shaddow" errors [message #703358] |
Wed, 27 July 2011 09:42  |
Eclipse User |
|
|
|
Hello,
I am getting very strange behaviour of my Xtext generated application. I have defined my grammar, e.g.:
MyModel:
entities += Entity*;
Entity:
EntityA|EntityB|EntityC;
EntityA,..,EntityC are defined.
Objects of EntityA refer to objects of EntityB and EntityC.
Everything works perfect, while I have all objects of EntityA, EntityB, EntityC defined in single file. However, if I put the EntityA objects into file1.ext, EntityB objects into file2.ext and EntityC objects into file3.ext (all these files are in src folder of MyModel project), there are references errors. The errors disappear after re-save of these files. The strange is: there is still "shaddow" (gray color) error in front of refferencing lines and I can't get rid of it.
Note: Scoping of files works perfect, as the code completion allways gives me reasonable possibilities.
What could cause this problem? How could I solve it?
Thank you & Best regards,
Michal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: "shaddow" errors [message #704972 is a reply to message #703533] |
Fri, 29 July 2011 05:18  |
Eclipse User |
|
|
|
Hi Michal,
don't do this in an OSGi environment:
new TestCaseStandaloneSetup().createInjectorAndDoEMFRegistration();
It is not necessary. All the registration / injector config should
happen in the plugin.xml / activator / by means of @Inject in the
generator itself.
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
On 27.07.11 19:07, Michal wrote:
> Hi Christian,
>
> thank you for your answer.
> I took Copier class from org.eclipse.emf.ecore.util.EcoreUtil. I don't
> need to use Copier class -> If you have any other suggestion, I
> appreciate it, as Java is not my "cup of coffee" and I use it only when
> I have no other choice...
>
> Best regards,
> Michal
|
|
|
Powered by
FUDForum. Page generated in 0.30903 seconds