Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cannot be resolved or is not a field(can not completely delete class in *.genmodel)
Cannot be resolved or is not a field [message #1842896] Mon, 05 July 2021 15:22 Go to next message
Yiwei Miao is currently offline Yiwei MiaoFriend
Messages: 4
Registered: March 2021
Junior Member
Hi everyone,

I am trying to use EMF to generate some codes.
I delete some classes in my *.ecore UML diagram, and reload it in my *.genmodel. But when i use *.genmodel to generate code. I got error like this: "xxx Cannot be resolved or is not a field". "xxx" is the class i deleted.

i checked *.genmodel many times. It did not have the "xxx" class(and i saved and restarted).

It seems to me that, eclipse did not delete the class completely and it is still saved somewhere.

Someone had similar problem?

Re: Cannot be resolved or is not a field [message #1842898 is a reply to message #1842896] Mon, 05 July 2021 15:52 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32066
Registered: July 2009
Senior Member
I assume these are errors in your *.java file? Delete all the generated packages and generate it fresh. If the problem persists, please attach a picture showing the workspace with this problem.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:eclipse modeling 4.20 - validation error org.eclipse.net4j.http.server
Next Topic:Error when running ecore codegen with tycho
Goto Forum:
  


Current Time: Sun Oct 17 16:22:19 GMT 2021

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

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

Back to the top