Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: EMF Build Errors
Re: EMF Build Errors [message #419705] Mon, 02 June 2008 19:05 Go to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Randy,

It's best to ask about EMF on the EMF newsgroup, which I've added to the
"to" list of the reply.

randy wrote:
> Hi, I am trying to put together a small EMF based plugin as a proof
> of technology. What I have is a Customer model that I have imported in
> and created an EMF model from it. Everything looks good until I try to
> generate the EMF Model. All the generated files can't find the
> following imports:
> org.eclipse.emf.common.*
> org.eclipse.emf.ecore.*
Sounds like the MANIFEST.MF needs to be updated.
>
> I have tried modifying the MANIFEST.MF which worked for the plugin
> project but the Customer.edit project does not even see the
> org.eclipse.emf.common plugin as being available.
The .edit projects assume that the model projects export the things they
need, including EMF's common.
> It seems strange that the model generators can't even find the correct
> imports. I assume there is some setting or classpath I have to update
> to ensure everything is imported, but I can't find it. Anyone have a
> suggestion?
EMF's generator merges generated changes with hand written changes, but
there's no support for merging MANIFEST.MF and plugin.xml files. If you
delete your MANIFEST.MF and your plugin.xml from each of your projects,
EMF will generate what's supposed to be there (what it expects to be
there) and then you shouldn't have any classpath problems.
>
> Thanks.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF Build Errors [message #419713 is a reply to message #419705] Tue, 03 June 2008 13:36 Go to previous message
Randy Streator is currently offline Randy StreatorFriend
Messages: 3
Registered: July 2009
Junior Member
Ed Merks wrote:

> Randy,

> It's best to ask about EMF on the EMF newsgroup, which I've added to the
> "to" list of the reply.

> randy wrote:
>> Hi, I am trying to put together a small EMF based plugin as a proof
>> of technology. What I have is a Customer model that I have imported in
>> and created an EMF model from it. Everything looks good until I try to
>> generate the EMF Model. All the generated files can't find the
>> following imports:
>> org.eclipse.emf.common.*
>> org.eclipse.emf.ecore.*
> Sounds like the MANIFEST.MF needs to be updated.
>>
>> I have tried modifying the MANIFEST.MF which worked for the plugin
>> project but the Customer.edit project does not even see the
>> org.eclipse.emf.common plugin as being available.
> The .edit projects assume that the model projects export the things they
> need, including EMF's common.
>> It seems strange that the model generators can't even find the correct
>> imports. I assume there is some setting or classpath I have to update
>> to ensure everything is imported, but I can't find it. Anyone have a
>> suggestion?
> EMF's generator merges generated changes with hand written changes, but
> there's no support for merging MANIFEST.MF and plugin.xml files. If you
> delete your MANIFEST.MF and your plugin.xml from each of your projects,
> EMF will generate what's supposed to be there (what it expects to be
> there) and then you shouldn't have any classpath problems.
>>
>> Thanks.
>>
Ed, thanks for the help. Once I added the plugins to the main projects
manifest file and regenerated it got rid of the problems. I was almost
there before, I just hadn't regenerated the files.
Previous Topic:Import Ecore types to own model
Next Topic:Re: [Fwd: Re: EventLoopProgressMonitor.isCanceled produce a strange refresh]
Goto Forum:
  


Current Time: Wed Sep 18 21:24:21 GMT 2024

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

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

Back to the top