Newbie - generated class is extending interface not implementing [message #491739] |
Thu, 15 October 2009 11:55  |
Eclipse User |
|
|
|
Total, total newbie with UML/EMF.
Usign UML2 Tools I've created a simple interface with a single method "hello". A simple class has an interfaceRealization link to the interface.
I have created an EMF .gencode file from the .uml file, which shows "HelloClass -> Hello" (I presume this means HelloClass implements Hello).
When I generate the Java model I instead find that "HelloClass" is now an interface extending "Hello", rather than a class implementing "Hello".
Where am I going wrong?
Thanks,
|
|
|
|
Re: Newbie - generated class is extending interface not implementing [message #491845 is a reply to message #491766] |
Fri, 16 October 2009 03:31  |
Eclipse User |
|
|
|
Hi Ed,
Sorry - wrote my post in a total hurry. Yes, I meant .genmodel - realised that when I got home!
Yes, the .genmodel and .ecore structures both show EClasses:
- 'Hello' interface is an EClass, and has a single EOperation 'hello'
- 'HelloClass' in also an EClass.
Right - clearly I need to do more reading up... I did look at a few tutorials but have found it hard going. I'll read up some more - get my expectations sorted out.
Thanks Ed,
Tony
|
|
|
Re: Newbie - generated class is extending interface not implementing [message #624908 is a reply to message #491766] |
Fri, 16 October 2009 03:31  |
Eclipse User |
|
|
|
Hi Ed,
Sorry - wrote my post in a total hurry. Yes, I meant .genmodel - realised that when I got home!
Yes, the .genmodel and .ecore structures both show EClasses:
- 'Hello' interface is an EClass, and has a single EOperation 'hello'
- 'HelloClass' in also an EClass.
Right - clearly I need to do more reading up... I did look at a few tutorials but have found it hard going. I'll read up some more - get my expectations sorted out.
Thanks Ed,
Tony
|
|
|
Powered by
FUDForum. Page generated in 0.04496 seconds