Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Xcore modelDirectory
Xcore modelDirectory [message #990866] Fri, 14 December 2012 15:11 Go to next message
Hendrik Eeckhaut is currently offline Hendrik EeckhautFriend
Messages: 26
Registered: July 2009
Junior Member
I am trying to use Xcore and ran into a problem generating the Java model classes at the location I want.

I have one plugin "myplugin.bootstrap" that contains the Xcore file. I want to have the generated sources in another plugin "myplugin". So I specified
@GenModel(
    modelDirectory="/myplugin/src-gen",
    ...
)


The ecore file is generated at the expected location. However, the Java classes are generated in "/myplugin.bootstrap/src-gen" instead.

How can I change this location?

Thanks,
Hendrik.
Re: Xcore modelDirectory [message #990883 is a reply to message #990866] Fri, 14 December 2012 16:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Hendrik,

Comments below.

On 14/12/2012 4:11 PM, Hendrik Eeckhaut wrote:
> I am trying to use Xcore and ran into a problem generating the Java
> model classes at the location I want.
>
> I have one plugin "myplugin.bootstrap" that contains the Xcore file. I
> want to have the generated sources in another plugin "myplugin". So I
> specified
> @GenModel(
> modelDirectory="/myplugin/src-gen",
> ...
> )
>
> The ecore file is generated at the expected location.
What do you mean by the "ecore file"?
> However, the Java classes are generated in
> "/myplugin.bootstrap/src-gen" instead.
I tried this locally, and it worked okay for me. Perhaps I fixed
something in the 2.9 stream... You're using the 2.8.x stream?
>
> How can I change this location?
>
> Thanks,
> Hendrik.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Xcore modelDirectory [message #990942 is a reply to message #990883] Sat, 15 December 2012 07:34 Go to previous messageGo to next message
Hendrik Eeckhaut is currently offline Hendrik EeckhautFriend
Messages: 26
Registered: July 2009
Junior Member
Hi Ed,

I used xcore_1.0.0.v20120612. I will re-try with a newer version.

Thanks,
Hendrik.
Re: Xcore modelDirectory [message #990946 is a reply to message #990942] Sat, 15 December 2012 09:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Hendrik,

Yes, there are have many fixes in 1.1.

On 15/12/2012 8:34 AM, Hendrik Eeckhaut wrote:
> Hi Ed,
>
> I used xcore_1.0.0.v20120612. I will re-try with a newer version.
>
> Thanks,
> Hendrik.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Xcore modelDirectory [message #991045 is a reply to message #990946] Mon, 17 December 2012 07:47 Go to previous messageGo to next message
Hendrik Eeckhaut is currently offline Hendrik EeckhautFriend
Messages: 26
Registered: July 2009
Junior Member
it works as expected in 1.1

Thanks,
Hendrik.
Re: Xcore modelDirectory [message #991299 is a reply to message #991045] Tue, 18 December 2012 12:22 Go to previous messageGo to next message
Hendrik Eeckhaut is currently offline Hendrik EeckhautFriend
Messages: 26
Registered: July 2009
Junior Member
> What do you mean by the "ecore file"?

I missed that question and now think this might be a bug.
In the mymodel.impl in the myplugin plugin, a mymodel.ecore file is generated.

Hendrik.
Re: Xcore modelDirectory [message #991324 is a reply to message #991299] Tue, 18 December 2012 14:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Hendrik,

There's a GenPackage property for "Initialize by Loading". When that's
true, instead of generating a very large XyzPackageImpl you'll get a
much smaller one that loads the package from the serialized *.ecore in
that same package/folder. It defaults to true for large models that are
likely to exceed Java's byte code limit for methods.


On 18/12/2012 4:22 AM, Hendrik Eeckhaut wrote:
>> What do you mean by the "ecore file"?
>
> I missed that question and now think this might be a bug.
> In the mymodel.impl in the myplugin plugin, a mymodel.ecore file is
> generated.
>
> Hendrik.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:How to get file which is in Project Explorer and open it from Navigator View?
Next Topic:[CDO] Problem with Hibernate example
Goto Forum:
  


Current Time: Thu Mar 28 15:41:02 GMT 2024

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

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

Back to the top