Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCORE] ecore file generated in impl package
[XCORE] ecore file generated in impl package [message #1739750] Wed, 03 August 2016 16:20 Go to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Hi,

since a while there is a packageName.ecore file generated into the impl
package. "packageName" stands for the package name defined in my xcore
file. The IDE is Neon respectively Eclipse 4.6.0.

The xcore file starts with the following lines:
@GenModel(editDirectory="/de.bahntechnik.dd.opn.ana.sel.edit/src", 
tableProviders="true",
editorDirectory="/de.bahntechnik.dd.opn.dev.ana.sel.editor/src", 
editorPluginID="de.bahntechnik.dd.opn.dev.ana.sel.editor", 
resource="XML", 
editorPluginClass="de.bahntechnik.dd.opn.dev.ana.sel.presentation.SelEditorPlugin", 
multipleEditorPages="false", literalsInterface="true")
package de.bahntechnik.dd.opn.ana.sel


On one hand I do not need the file and on the other hand I get annoying
Problem markers from that file.

Does any one have an idea how to avoid this packageName.ecore file?

Martin
Re: [XCORE] ecore file generated in impl package [message #1739751 is a reply to message #1739750] Wed, 03 August 2016 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31900
Registered: July 2009
Senior Member
Martin,

This is generated only if the package is really quite large and the
normal generated XyzPackage might exceed Java's byte code limit of 64k.

In the properties view you could change the Initialize by Loading
GenPackage property to false, and hope it generates code that's not too
large.


On 03.08.2016 18:20, Martin Jacob wrote:
> Hi,
>
> since a while there is a packageName.ecore file generated into the
> impl package. "packageName" stands for the package name defined in my
> xcore file. The IDE is Neon respectively Eclipse 4.6.0.
>
> The xcore file starts with the following lines:
>
> @GenModel(editDirectory="/de.bahntechnik.dd.opn.ana.sel.edit/src", 
> tableProviders="true",
> editorDirectory="/de.bahntechnik.dd.opn.dev.ana.sel.editor/src", 
> editorPluginID="de.bahntechnik.dd.opn.dev.ana.sel.editor", 
> resource="XML", 
> editorPluginClass="de.bahntechnik.dd.opn.dev.ana.sel.presentation.SelEditorPlugin", 
> multipleEditorPages="false", literalsInterface="true")
> package de.bahntechnik.dd.opn.ana.sel
> 

>
> On one hand I do not need the file and on the other hand I get
> annoying Problem markers from that file.
>
> Does any one have an idea how to avoid this packageName.ecore file?
>
> Martin


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCORE] ecore file generated in impl package [message #1739753 is a reply to message #1739751] Thu, 04 August 2016 07:33 Go to previous messageGo to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Thanks Ed, this avoids the file and luckily the 64k limit is not
exceeded. The YXZPackageImpl has now 6153 lines from previous 4582 lines.

I have an editor for the EMF model which seams to load now a bit faster
then before. Which is reasonable as the lazy loading is disabled.

I am just curious. Is the packageName.ecore file really needed to use
the model or just a left over from code generation?
Re: [XCORE] ecore file generated in impl package [message #1741976 is a reply to message #1739750] Wed, 03 August 2016 16:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31900
Registered: July 2009
Senior Member
Martin,

This is generated only if the package is really quite large and the
normal generated XyzPackage might exceed Java's byte code limit of 64k.

In the properties view you could change the Initialize by Loading
GenPackage property to false, and hope it generates code that's not too
large.


On 03.08.2016 18:20, Martin Jacob wrote:
> Hi,
>
> since a while there is a packageName.ecore file generated into the
> impl package. "packageName" stands for the package name defined in my
> xcore file. The IDE is Neon respectively Eclipse 4.6.0.
>
> The xcore file starts with the following lines:
>
> @GenModel(editDirectory="/de.bahntechnik.dd.opn.ana.sel.edit/src", 
> tableProviders="true",
> editorDirectory="/de.bahntechnik.dd.opn.dev.ana.sel.editor/src", 
> editorPluginID="de.bahntechnik.dd.opn.dev.ana.sel.editor", 
> resource="XML", 
> editorPluginClass="de.bahntechnik.dd.opn.dev.ana.sel.presentation.SelEditorPlugin", 
> multipleEditorPages="false", literalsInterface="true")
> package de.bahntechnik.dd.opn.ana.sel
> 

>
> On one hand I do not need the file and on the other hand I get
> annoying Problem markers from that file.
>
> Does any one have an idea how to avoid this packageName.ecore file?
>
> Martin


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCORE] ecore file generated in impl package [message #1741979 is a reply to message #1739751] Thu, 04 August 2016 07:33 Go to previous messageGo to next message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
Thanks Ed, this avoids the file and luckily the 64k limit is not
exceeded. The YXZPackageImpl has now 6153 lines from previous 4582 lines.

I have an editor for the EMF model which seams to load now a bit faster
then before. Which is reasonable as the lazy loading is disabled.

I am just curious. Is the packageName.ecore file really needed to use
the model or just a left over from code generation?
Re: [XCORE] ecore file generated in impl package [message #1741980 is a reply to message #1739753] Thu, 04 August 2016 07:57 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31900
Registered: July 2009
Senior Member
Martin,

The packageName.ecore left over from when it was needed for loading.


On 04.08.2016 09:33, Martin Jacob wrote:
> Thanks Ed, this avoids the file and luckily the 64k limit is not
> exceeded. The YXZPackageImpl has now 6153 lines from previous 4582 lines.
>
> I have an editor for the EMF model which seams to load now a bit
> faster then before. Which is reasonable as the lazy loading is disabled.
>
> I am just curious. Is the packageName.ecore file really needed to use
> the model or just a left over from code generation?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [XCORE] ecore file generated in impl package [message #1741981 is a reply to message #1741980] Thu, 04 August 2016 09:00 Go to previous message
Martin Jacob is currently offline Martin JacobFriend
Messages: 189
Registered: July 2009
Senior Member
OK thanks, so it was needed for lazy loading.
Previous Topic:Re: [CDO] Is it possible to store generated EMF model directly to CDO?
Next Topic:CLASS CAST EXCEPTION
Goto Forum:
  


Current Time: Sat Jun 12 18:43:53 GMT 2021

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

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

Back to the top