Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » B3 » only imported models - issue with generated code
only imported models - issue with generated code [message #595808] Thu, 04 February 2010 23:20 Go to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
After using only imported models in my grammar, I get an issue with the
following generated code:

public void register(Injector injector) {
if
(!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/b3/BeeLang"))
{
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/b3/BeeLang",
org.eclipse.b3.beeLang.BeeLangPackage.eINSTANCE);
}

There is no longer a BeeLang model and package. Uncommenting the
offending lines works. I wonder how I can get rid of the generation of
this. What have I missed?

Regards
- henrik
Re: only imported models - issue with generated code [message #595820 is a reply to message #595808] Thu, 04 February 2010 23:22 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
Sorry - wrong newsgroup...
- henrik

On 2/5/10 12:20 AM, Henrik Lindberg wrote:
> After using only imported models in my grammar, I get an issue with the
> following generated code:
>
> public void register(Injector injector) {
> if
> (!EPackage.Registry.INSTANCE.containsKey("http://www.eclipse.org/b3/BeeLang"))
> {
>
> EPackage.Registry.INSTANCE.put("http://www.eclipse.org/b3/BeeLang",
> org.eclipse.b3.beeLang.BeeLangPackage.eINSTANCE);
> }
>
> There is no longer a BeeLang model and package. Uncommenting the
> offending lines works. I wonder how I can get rid of the generation of
> this. What have I missed?
>
> Regards
> - henrik
Previous Topic:Heads up - trunk for b3 (engine) moving to 3.6M5
Next Topic:Heads up - trunk for b3 (engine) moving to 3.6M5
Goto Forum:
  


Current Time: Thu Apr 18 08:29:39 GMT 2024

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

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

Back to the top