[Acceleo/EMF] Problem in Main.java after refactoring one meta-model into two [message #639820] |
Wed, 17 November 2010 18:03  |
Eclipse User |
|
|
|
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: resourceSet.getPackageRegistry().put(packagepath...)
They are all unresolved. Is there something obvious I'm missing?
Thanks for any help!
[Updated on: Wed, 17 November 2010 18:50] by 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 03:12   |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------030607070700010808010908
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Jeff,
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
|- src
| |- com
| |- xyz
| |- XYZPackage
| |- ...
|- model
|- xyz.ecore
|- xyz.genmodel
com.xyz.edit
|- ...
com.xyz.editor
|- ...
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.
Laurent Goubet
Obeo
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
> development.
> 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!
> Jeff
--------------030607070700010808010908
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------030607070700010808010908--
|
|
|
|
Powered by
FUDForum. Page generated in 0.07458 seconds