Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » where is the basic project path for code generation taken from?
where is the basic project path for code generation taken from? [message #511403] Mon, 01 February 2010 14:39 Go to next message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
hello

i want to create three different editors off of one model.
since you can only specify one gmf.diagram, i figured i just create three new projects, and copy the .ecore and .genmodel into them.

while the basic idea seems to work, i have now the problem that the code for all of them is generated in the same folder (<baseproject>.diagram).

so i'm looking for a way to generate the code in three folders, e.g.

<project1>.diagram
<project2>.diagram
<project3>.diagram

i guess the project path is taken from the .genmodel somehow, but i couldn't figure out from where exactly.

does anybody know this?

thanks

marco
Re: where is the basic project path for code generation taken from? [message #511407 is a reply to message #511403] Mon, 01 February 2010 14:47 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Have you tried opening the .gmfgen with a text editor and doing a
text-based search in the XMI? When you figure out where you can specify
this, you could create a custom EOL script next to each instance of your
..ecore and specify the change so that it is performed every time
automatically (see
http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-poli shing/).

Cheers,
Dimitris

Marco.Kranz@fokus.fraunhofer.de wrote:
> hello
>
> i want to create three different editors off of one model.
> since you can only specify one gmf.diagram, i figured i just create
> three new projects, and copy the .ecore and .genmodel into them.
>
> while the basic idea seems to work, i have now the problem that the code
> for all of them is generated in the same folder (<baseproject>.diagram).
>
> so i'm looking for a way to generate the code in three folders, e.g.
>
> <project1>.diagram
> <project2>.diagram
> <project3>.diagram
>
> i guess the project path is taken from the .genmodel somehow, but i
> couldn't figure out from where exactly.
>
> does anybody know this?
>
> thanks
>
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: where is the basic project path for code generation taken from? [message #511425 is a reply to message #511407] Mon, 01 February 2010 15:20 Go to previous messageGo to next message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
hello dimitris

good idea, but the information does not seem to be in there. oO
i guess he's taking the information from either the .ecore or .genmodel during code generation, since they are linked in the .gmfgen...
any other ideas?

marco
Re: where is the basic project path for code generation taken from? [message #511440 is a reply to message #511425] Mon, 01 February 2010 10:52 Go to previous messageGo to next message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
In that case it would probably be the genmodel, since that contains
generation target paths for a range of plugins already.

Steffen

On 01/02/2010 15:20, Marco.Kranz@fokus.fraunhofer.de wrote:
> hello dimitris
>
> good idea, but the information does not seem to be in there. oO
> i guess he's taking the information from either the .ecore or
> .genmodel during code generation, since they are linked in the .gmfgen...
> any other ideas?
>
> marco
Re: where is the basic project path for code generation taken from? [message #511459 is a reply to message #511440] Mon, 01 February 2010 16:19 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I've had a look and I can't find this either.

Marco: Perhaps you could ask about this in the GMF newsgroup and see if
anyone there has a clue.

Cheers,
Dimitris

Steffen Zschaler wrote:
> In that case it would probably be the genmodel, since that contains
> generation target paths for a range of plugins already.
>
> Steffen
>
> On 01/02/2010 15:20, Marco.Kranz@fokus.fraunhofer.de wrote:
>> hello dimitris
>>
>> good idea, but the information does not seem to be in there. oO
>> i guess he's taking the information from either the .ecore or
>> .genmodel during code generation, since they are linked in the .gmfgen...
>> any other ideas?
>>
>> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: where is the basic project path for code generation taken from? [message #511481 is a reply to message #511459] Mon, 01 February 2010 17:10 Go to previous messageGo to next message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
again good idea, i'll do that.
for now i figured i can just rename the projects after generation, so i can at least work with them.

thanks all

marco
Re: where is the basic project path for code generation taken from? [message #511905 is a reply to message #511481] Wed, 03 February 2010 11:31 Go to previous messageGo to next message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
ok, finally found it. the project folder can be set in the .gmfgen properties.
in the properties view, open
- ...gengmf
- gen editor...
there should be a
- gen plugin...
in it's properties you can change the 'ID' to set the project folder.

[Updated on: Wed, 03 February 2010 11:31]

Report message to a moderator

Re: where is the basic project path for code generation taken from? [message #512052 is a reply to message #511905] Wed, 03 February 2010 18:05 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Great! Thanks for sharing this!

Cheers,
Dimitris

Marco.Kranz@fokus.fraunhofer.de wrote:
> ok, finally found it. the project folder can be set in the .gmfgen
> properties.
> in the properties view open
> - ...gengmf
> - gen editor...
> there should be a
> - gen plugin...
> in it's properties you can change the 'ID' to set the project folder.


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: where is the basic project path for code generation taken from? [message #585500 is a reply to message #511403] Mon, 01 February 2010 14:47 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Marco,

Have you tried opening the .gmfgen with a text editor and doing a
text-based search in the XMI? When you figure out where you can specify
this, you could create a custom EOL script next to each instance of your
..ecore and specify the change so that it is performed every time
automatically (see
http://www.eclipse.org/gmt/epsilon/doc/articles/eugenia-poli shing/).

Cheers,
Dimitris

Marco.Kranz@fokus.fraunhofer.de wrote:
> hello
>
> i want to create three different editors off of one model.
> since you can only specify one gmf.diagram, i figured i just create
> three new projects, and copy the .ecore and .genmodel into them.
>
> while the basic idea seems to work, i have now the problem that the code
> for all of them is generated in the same folder (<baseproject>.diagram).
>
> so i'm looking for a way to generate the code in three folders, e.g.
>
> <project1>.diagram
> <project2>.diagram
> <project3>.diagram
>
> i guess the project path is taken from the .genmodel somehow, but i
> couldn't figure out from where exactly.
>
> does anybody know this?
>
> thanks
>
> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: where is the basic project path for code generation taken from? [message #585508 is a reply to message #511407] Mon, 01 February 2010 15:20 Go to previous message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
hello dimitris

good idea, but the information does not seem to be in there. oO
i guess he's taking the information from either the .ecore or .genmodel during code generation, since they are linked in the .gmfgen...
any other ideas?

marco
Re: where is the basic project path for code generation taken from? [message #585519 is a reply to message #585508] Mon, 01 February 2010 15:50 Go to previous message
Steffen Zschaler is currently offline Steffen ZschalerFriend
Messages: 266
Registered: July 2009
Senior Member
In that case it would probably be the genmodel, since that contains
generation target paths for a range of plugins already.

Steffen

On 01/02/2010 15:20, Marco.Kranz@fokus.fraunhofer.de wrote:
> hello dimitris
>
> good idea, but the information does not seem to be in there. oO
> i guess he's taking the information from either the .ecore or
> .genmodel during code generation, since they are linked in the .gmfgen...
> any other ideas?
>
> marco
Re: where is the basic project path for code generation taken from? [message #585529 is a reply to message #585519] Mon, 01 February 2010 16:19 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
I've had a look and I can't find this either.

Marco: Perhaps you could ask about this in the GMF newsgroup and see if
anyone there has a clue.

Cheers,
Dimitris

Steffen Zschaler wrote:
> In that case it would probably be the genmodel, since that contains
> generation target paths for a range of plugins already.
>
> Steffen
>
> On 01/02/2010 15:20, Marco.Kranz@fokus.fraunhofer.de wrote:
>> hello dimitris
>>
>> good idea, but the information does not seem to be in there. oO
>> i guess he's taking the information from either the .ecore or
>> .genmodel during code generation, since they are linked in the .gmfgen...
>> any other ideas?
>>
>> marco


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: where is the basic project path for code generation taken from? [message #585543 is a reply to message #511459] Mon, 01 February 2010 17:10 Go to previous message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
again good idea, i'll do that.
for now i figured i can just rename the projects after generation, so i can at least work with them.

thanks all

marco
Re: where is the basic project path for code generation taken from? [message #585628 is a reply to message #511481] Wed, 03 February 2010 11:31 Go to previous message
m kranz is currently offline m kranzFriend
Messages: 69
Registered: January 2010
Member
ok, finally found it. the project folder can be set in the .gmfgen properties.
in the properties view open
- ...gengmf
- gen editor...
there should be a
- gen plugin...
in it's properties you can change the 'ID' to set the project folder.
Re: where is the basic project path for code generation taken from? [message #585683 is a reply to message #585628] Wed, 03 February 2010 18:05 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Great! Thanks for sharing this!

Cheers,
Dimitris

Marco.Kranz@fokus.fraunhofer.de wrote:
> ok, finally found it. the project folder can be set in the .gmfgen
> properties.
> in the properties view open
> - ...gengmf
> - gen editor...
> there should be a
> - gen plugin...
> in it's properties you can change the 'ID' to set the project folder.


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Previous Topic:How does synchronize gmfgen work?
Next Topic:[EOL, Ecore2GMF.eol] How duplicate GmfMap!NodeMapping?
Goto Forum:
  


Current Time: Fri Apr 26 21:18:45 GMT 2024

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

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

Back to the top