Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » impl cannot be resolved or is not a field
impl cannot be resolved or is not a field [message #780461] Wed, 18 January 2012 05:31 Go to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
hi,
I try to create a diagram but the problem is when i try to derive *.genmodel i get this error. I try in different version of eclipse but the problem is still there.. I put a picture of it.
index.php/fa/6774/0/

"impl cannot be resolved or is not a field"????

what should i do? any quick suggestion?
  • Attachment: 1.jpg
    (Size: 227.83KB, Downloaded 2815 times)
Re: impl cannot be resolved or is not a field [message #780473 is a reply to message #780461] Wed, 18 January 2012 08:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This looks like a self-induced problem. I can see that your package
name is NetworkDiagram but standard Java language naming rules dictate
that package names should start with a lower case letter and that class
names should start with an upper case letter. I can see in your outline
that you do have a class named NetworkDiagram too. Now when Java sees
NetworkDiagram.impl in the body of your interface how does it know if
NetworkDiagram refers to a package or a class? It's a bit ambiguous and
Java favors the class name. I'm not even sure how it would be possible
to convince Java that you want to refer to the package not the class.
So follow Java naming rules in your Ecore model (lower case package
names and upper case class names) and it will be impossible for package
and class names to collides, and hence it will be impossible to have
this problem.


On 18/01/2012 6:31 AM, iqbal Mising name wrote:
> hi,
> I try to create a diagram but the problem is when i try to derive *.genmodel i get this error. I try in different version of eclipse but the problem is still there.. I put a picture of it.
>
>
> "impl cannot be resolved or is not a field"????
>
> what should i do? any quick suggestion?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: impl cannot be resolved or is not a field [message #780477 is a reply to message #780473] Wed, 18 January 2012 08:38 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
thnxxxxxx.... I understand...it works....Smile
Re: impl cannot be resolved or is not a field [message #1009833 is a reply to message #780477] Fri, 15 February 2013 20:11 Go to previous message
John Evans is currently offline John EvansFriend
Messages: 2
Registered: October 2011
Location: Atlanta, GA
Junior Member
I had the same problem resulting from the packages generated by emf. Investigating I found that <project>.genmodel has several properties that I had not noticed or set including base package and package. I had to delete all the generated code and regenerate.
Previous Topic:Link constraints aren't evaluated for non-model figures
Next Topic:Properties View
Goto Forum:
  


Current Time: Thu Mar 28 11:29:21 GMT 2024

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

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

Back to the top