|[Acceleo/EMF] Problem in Main.java after refactoring one meta-model into two [message #639820]
||Wed, 17 November 2010 23:03
| Glenview Jeff
Registered: September 2010
I just refactored my meta-model by splitting it into two separate ecore files, one for application-specific components and one for platform-specific components.|
I loaded the resources from the application-specific meta-model into the platform-specific meta-model, created a single genmodel that contains both meta-models, and successfully generated the model editor plugin and started the new Eclipse. In my existing mtl file templates, I added the module imports to the top line of the mtl files to successfully wire the new dependencies.
However, one last problem remains that is stumping me. I recreated a new clean main.mtl and Main.java files.
Inside Main.java, there is a method called registerPackages. In the method, there are a bunch of calls to:
They are all unresolved. Is there something obvious I'm missing?
Thanks for any help!
[Updated on: Wed, 17 November 2010 23:50]
Report message to a moderator
|Re: [Acceleo/EMF] Problem in Main.java after refactoring one meta-model into two [message #640454 is a reply to message #640255]
||Mon, 22 November 2010 08:12
|| Laurent Goubet
Registered: July 2009
This is a multi-part message in MIME format.|
Content-Type: text/plain; charset=UTF-8; format=flowed
I must admit I'm quite confused right now.
Could you briefly describe which projects you have in which Eclipse
workspace? If you followed one of the EMF tutorials I can think of when
defining your metamodel (the project that contains your genmodel), you
should have something resembling this :
"main" Eclipse, the first you launch :
| |- com
| |- xyz
| |- XYZPackage
| |- ...
Then, in the "runtime" Eclipse, the one you launch from the "main", you
should have all of the projects that depend on the "xyz" model,
including your Acceleo project.
You shouldn't have _twice_ your metamodel project (containing your
"XYZPackage"), it should only exist in the "main" Eclipse workspace.
On 19/11/2010 19:44, glenviewjeff wrote:
> I found something that will likely indicate the problem, I just don't
> know how to fix it. I bet it stems from my ignorance of Eclipse/plugin
> In my project that contains the genmodel, I opened up the filesystem to
> look at the bin directory. I noticed that it contains a structure like
> this: bin\com\xyz\package123.
> However, the project in the child Eclipse that contains the installed
> model editor shows in its bin directory a different structure as I said
> in my previously posted message. (bin\package123)
> Also, I noticed that if I double click on one of the class files in the
> child Eclipse, Eclipse reports that it can't find the file.
> This is probably the wrong forum to be asking this question, but how
> does the plug-in dependency get updated in the Child Eclipse?
> Thanks for your help!
Content-Type: text/x-vcard; charset=utf-8;
Powered by FUDForum
. Page generated in 0.07023 seconds