Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » 'src' folder appears empty in Package Explorer view after EMF Java generation
'src' folder appears empty in Package Explorer view after EMF Java generation [message #664071] Thu, 07 April 2011 12:01 Go to next message
Ben Tenne is currently offline Ben TenneFriend
Messages: 50
Registered: October 2009
Member
I've seen some intermittent behaviour, therefore making it difficult to specify steps to reproduce it. This is with EMF 2.4.2...

Sometimes, after programmatically generating an EMF project (from XSD), I am left with a project that appears to have an empty 'src' folder. This, of course, is immediately noticeable, as an error marker appears on MANIFEST.MF, complaining that it declares Export-Package for packages that don't exist.

The interesting thing is, opening the Navigator view shows that the src folder DOES contain the source files, they're just not visible in the Package Explorer view. No amount of File>Refresh on the project resolves it, but closing and then opening the project does (via the UI, that is - I've tried adding a close/open at the end of my code and that makes no difference).

My environment is not vanilla EMF by any means: we have all sorts of tinkering throughout. However, I'd be interested to hear if these symptoms resemble any known issues.

Thanks,
Ben.
Re: 'src' folder appears empty in Package Explorer view after EMF Java generation [message #664129 is a reply to message #664071] Thu, 07 April 2011 14:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30544
Registered: July 2009
Senior Member
Ben,

Maybe you have Mint installed and it's filtering out resources that are
purely generated, i.e., that have no methods/classes without @generated
on them...


Ben Tenne wrote:
> I've seen some intermittent behaviour, therefore making it difficult
> to specify steps to reproduce it. This is with EMF 2.4.2...
>
> Sometimes, after programmatically generating an EMF project (from
> XSD), I am left with a project that appears to have an empty 'src'
> folder. This, of course, is immediately noticeable, as an error
> marker appears on MANIFEST.MF, complaining that it declares
> Export-Package for packages that don't exist.
>
> The interesting thing is, opening the Navigator view shows that the
> src folder DOES contain the source files, they're just not visible in
> the Package Explorer view. No amount of File>Refresh on the project
> resolves it, but closing and then opening the project does (via the
> UI, that is - I've tried adding a close/open at the end of my code and
> that makes no difference).
>
> My environment is not vanilla EMF by any means: we have all sorts of
> tinkering throughout. However, I'd be interested to hear if these
> symptoms resemble any known issues.
>
> Thanks,
> Ben.
Re: 'src' folder appears empty in Package Explorer view after EMF Java generation [message #664164 is a reply to message #664129] Thu, 07 April 2011 17:07 Go to previous messageGo to next message
Ben Tenne is currently offline Ben TenneFriend
Messages: 50
Registered: October 2009
Member
Ed Merks wrote on Thu, 07 April 2011 10:21
Ben,

Maybe you have Mint installed and it's filtering out resources that are
purely generated, i.e., that have no methods/classes without @generated
on them...



That wouldn't explain it being intermittent though, would it?

Thanks,
Ben.

Re: 'src' folder appears empty in Package Explorer view after EMF Java generation [message #664205 is a reply to message #664164] Thu, 07 April 2011 19:55 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30544
Registered: July 2009
Senior Member
Ben,

Nothing seems to explain it being intermittent...

Ben Tenne wrote:
> Ed Merks wrote on Thu, 07 April 2011 10:21
>> Ben,
>>
>> Maybe you have Mint installed and it's filtering out resources that
>> are purely generated, i.e., that have no methods/classes without
>> @generated on them...
>
>
> That wouldn't explain it being intermittent though, would it?
>
> Thanks,
> Ben.
>
>
Previous Topic:Global EMF Registry
Next Topic:Invalid entry feature exception from DelegatingFeatureMap.validate when switching to EStore
Goto Forum:
  


Current Time: Tue Oct 15 12:32:26 GMT 2019

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

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

Back to the top