Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Ecore and GenModel annotation not found in xcore files
Ecore and GenModel annotation not found in xcore files [message #1751966] Tue, 17 January 2017 09:50 Go to next message
Alexander Fichtinger is currently offline Alexander FichtingerFriend
Messages: 55
Registered: January 2013
Member
Hey guys,

we are using Xcore for defining our model. Recently we moved the xcore-files and the model to another GIT repository, which led to some problems:

In the xcore-files the annotations @Ecore and @GenModel are used.

Sometimes the two annotations are not found by Eclipse... Sometimes it works, but we do not now the reason for it...


The dependencies in our MANIFEST.MF file look like the following:

Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.xtext.xbase.lib,
org.eclipse.emf.ecore.xcore,
org.eclipse.emf.ecore.xcore.lib,
org.eclipse.collections.eclipse-collections,
org.eclipse.collections.eclipse-collections-api,
org.eclipse.emf.codegen.ecore;resolution:=optional,
org.eclipse.emf.mwe.utils;resolution:=optional,
org.eclipse.emf.mwe2.launch;resolution:=optional,
org.eclipse.emf.ecore,
org.eclipse.emf.common
Import-Package: org.apache.commons.collections.iterators


Maybe this information will help also:

Today I had this problem again, then I did the following:
- Tried to remove the dependency to " org.eclipse.emf.ecore.xcore.lib" and " org.eclipse.emf.ecore" from MANIFEST.MF
- Add these two dependencies again, (this works, so the plug-ins are found in our target definition)
- After adding these dependencies, the annotations @Ecore and @GenModel still cannot be found

- Because this did not work, we tried to increase the sequence number in the target definition and set this target definition anew.
Also this does not solve the problem.

- After restarting Eclipse, we set the target definition again, THEN it did work...

I think that our problem has something to do with the target definition of Eclipse..
Is Eclipse maybe caching something?

Maybe someone has a hint for us about what the problem could be..

Thanks for any help in advance! =)

Re: Ecore and GenModel annotation not found in xcore files [message #1751974 is a reply to message #1751966] Tue, 17 January 2017 12:51 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29034
Registered: July 2009
Senior Member
I know that PDE made some strange changes in Neon but I think they fixed that in Neon.2. Is your installation based on Neon.2 update
Re: Ecore and GenModel annotation not found in xcore files [message #1751976 is a reply to message #1751974] Tue, 17 January 2017 12:55 Go to previous message
Alexander Fichtinger is currently offline Alexander FichtingerFriend
Messages: 55
Registered: January 2013
Member
Hi Ed,

thanks, this seems interesting =)

We are using the following version of Neon:
Version: Neon Release (4.6.0)
Build id: 20160613-1800


Previous Topic:Unit-testing custom validators?
Next Topic:Differences in URI values
Goto Forum:
  


Current Time: Wed Dec 13 17:05:16 GMT 2017

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

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