Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Unwanted EMF Editor dependencies on File Extension Filters?(Editor depenency problems and code generation withe File Extensions)
Unwanted EMF Editor dependencies on File Extension Filters? [message #550589] Sat, 31 July 2010 00:11 Go to next message
Edward MacKerrow is currently offline Edward MacKerrowFriend
Messages: 7
Registered: July 2010
Location: Santa Fe, New Mexico
Junior Member
I have an EMF app that was working fine when I had an IDE target. When I switched to a RCP target I get errors on code generation in the presentation.EditorAdvisor classes. Specifically the getFileExtensionsFilter() method does not see the FILE_EXTENSION_FILTERS in the other EMF models that this depends on.

Three EMF models are being integrated (A,B,C). C depends on A and B. B depends on A.

When I generated code with an IDE target things worked fine. I have now switched to a RCP target, cleaned out previous generated code numerous times. My 3 .ecore files validate fine. The codegen seems to work, but I get a compile error in that the CEditorAdvisor can not find the A.FILE_EXTENSIOSNS_FILTER or the B.FILE_EXTENSIONS_FILTER.

I keep thinking I have my corresponding .genmodel specified incorrectly, however have not been able to get rid of this compile error.

I use Generate All on my models and get broken code... ?

Any suggestions to fix this?

Thanks !
Re: Unwanted EMF Editor dependencies on File Extension Filters? [message #550874 is a reply to message #550589] Wed, 04 August 2010 13:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Edward,

Comments below.

Edward MacKerrow wrote:
> I have an EMF app that was working fine when I had an IDE target.
> When I switched to a RCP target I get errors on code generation in the
> presentation.EditorAdvisor classes. Specifically the
> getFileExtensionsFilter() method does not see the
> FILE_EXTENSION_FILTERS in the other EMF models that this depends on.
So the MANIFEST.MF has missing dependencies?
>
> Three EMF models are being integrated (A,B,C). C depends on A and B.
> B depends on A.
>
> When I generated code with an IDE target things worked fine. I have
> now switched to a RCP target, cleaned out previous generated code
> numerous times. My 3 .ecore files validate fine. The codegen seems
> to work, but I get a compile error in that the CEditorAdvisor can not
> find the A.FILE_EXTENSIOSNS_FILTER or the B.FILE_EXTENSIONS_FILTER.
>
> I keep thinking I have my corresponding .genmodel specified
> incorrectly, however have not been able to get rid of this compile
> error.
> I use Generate All on my models and get broken code... ?
Try deleting the plugin.xml and MANIFEST.MF and then regenerating. If
they come out wrong (missing dependencies) that sounds like a bug to
report. It's of course easy to work around by adding the missing
dependencies; these files won't regenerate once they exist.
> Any suggestions to fix this?
>
> Thanks !


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Delete changes containment proxy values
Next Topic:EMF edit command implementation
Goto Forum:
  


Current Time: Thu Mar 28 23:20:57 GMT 2024

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

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

Back to the top