Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Very basic question regarding EMF/Ecore in Kepler, Interface and Package problems
Very basic question regarding EMF/Ecore in Kepler, Interface and Package problems [message #1115837] Tue, 24 September 2013 16:48 Go to next message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 176
Registered: September 2013
Senior Member
Hi everyone,

I have followed this tutorial, which says that I can start by defining my interface using Rational Rose or annotated Java:

http://help.eclipse.org/kepler/index.jsp

EMF Developer Guide > Tutorials
Generating an EMF Model

Last updated: June 18, 2007

(sorry, there is no direct link to this help page that I can find).

I went through the "Library" example and it worked OK.

I also found another tutorial from Lars Vogel here:

http://www.vogella.com/articles/EclipseEMF/article.html

This describes using the Juno version rather than Kepler, and he does not mention anything about creating the interface via either Rational Rose or using annotated Java. He also includes screenshots of a "visual editor for creating EMF models", that corresponds to nothing I have seen in Kepler.

I am using Kepler just to keep up with the latest stuff, although I also have Juno installed. I can use either one, whichever is better for this.

When I tried to create my own generators following the general steps using Lars Vogel's approach, I can create a genmodel from the ecore file. When I "generate all" from the genmodel, the 3 projects are created, but when I attempt to "Run as Eclipse Application" from the editor, it shows an error which ultimately traces to inability to locate the "holyCityAudio.com.SpinCAD.Package" (everything before "Package" is the path of my project and location of the "model" folder I am using for this exercise).

I'm sure this all boils down to some obvious setting I am missing, but since the tutorials don't necessarily explain the significance of everything, I am failing to understand the root cause of the problems I am seeing.

In summary, two questions:
1) Is there a way to generate the needed "Interface" using Ecore tools, or is it really needed to use Rational Rose (which costs about $2500) or using annotated Java (which is easy enough)?

2) Any idea what I have done wrong which results in the inability to resolve the "Package"?

Many thanks,

GW

[Updated on: Tue, 24 September 2013 16:49]

Report message to a moderator

Re: Very basic question regarding EMF/Ecore in Kepler, Interface and Package problems [message #1115934 is a reply to message #1115837] Tue, 24 September 2013 19:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Gary,

Comments below.


On 24/09/2013 6:48 PM, Gary Worsham wrote:
> Hi everyone,
>
> I have followed this tutorial, which says that I can start by defining
> my interface using Rational Rose or annotated Java:
>
> http://help.eclipse.org/kepler/index.jsp
>
> EMF Developer Guide > Tutorials
> Generating an EMF Model
>
> Last updated: June 18, 2007
>
> (sorry, there is no direct link to this help page that I can find).
>
> I went through the "Library" example and it worked OK.
>
> I also found another tutorial from Lars Vogel here:
>
> http://www.vogella.com/articles/EclipseEMF/article.html
>
> This describes using the Juno version rather than Kepler, and he does
> not mention anything creating the interface via either Rational Rose
> or annotated Java. He also screenshots of a "visual editor for
> creating EMF models", that corresponds to nothing I have seen in Kepler.
In section "2. Installation" it describes how to install Ecore Tools...
>
> I am using Kepler just to keep up with the latest stuff, although I
> also have Juno installed. I can use either one, whichever is better
> for this.
The latest is generally best...
>
> When I tried to create my own generators following the general steps
> using Lars Vogel's approach, I can create a genmodel from the ecore
> file. When I "generate all" from the genmodel, the 3 projects are
> created, but when I attempt to "Run as Eclipse Application" from the
> editor, it shows an error which ultimately traces to inability to
> locate the "holyCityAudio.com.SpinCAD.Package" (everything before
> "Package" is the path of my project and location of the "model" folder
> I am using for this exercise).
I'm quite confused by this sentence...
>
> I'm sure this all boils down to some obvious setting I am missing, but
> since the tutorials don't necessarily explain the significance of
> everything, I am failing to understand the root cause of the problems
> I am seeing.
>
> In summary, two questions:
> 1) Is there a way to generate the needed "Interface" using Ecore
> tools, or is it really needed to use Rational Rose (which costs about
> $2500) or using annotated Java (which is easy enough)?
No Rational Rose is an old fossil. Can you even buy it anymore? You can
use The Ecore Tools graphical editor, the Sample Ecore Editor,
annotated Java, or Xcore (http://wiki.eclipse.org/Xcore) to create your
models.
>
> 2) Any idea what I have done wrong which results in the inability to
> resolve the "Package"?
I'm confused by what is trying to resolve this. In which file does this
error appear?
>
> Many thanks,
> GW


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Very basic question regarding EMF/Ecore in Kepler, Interface and Package problems [message #1116058 is a reply to message #1115934] Tue, 24 September 2013 23:48 Go to previous message
Gary Worsham is currently offline Gary WorshamFriend
Messages: 176
Registered: September 2013
Senior Member
Hi Ed,

Looks like I completely missed the install of the "Ecore tools". Thought I already had it installed because the icon for the "Ecore model" and "Ecore diagram" are similar. Unfortunately at home I am using a laptop rather than large dual screens which makes following these tutorials a bit difficult.

Sorry about the dumb question but a different perspective did help break through the most obvious problem!

I will go solve that and then come back if my problems persist.

Thanks,

GW

[Updated on: Tue, 24 September 2013 23:57]

Report message to a moderator

Previous Topic:Generatin code from ecore models
Next Topic:Error in Generator Model Code
Goto Forum:
  


Current Time: Fri Apr 26 23:32:52 GMT 2024

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

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

Back to the top