Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Re: JMerge
Re: JMerge [message #30133] Mon, 30 July 2007 17:47 Go to next message
Eclipse UserFriend
Originally posted by: pieter.wbs.co.za

Hi,

I am trying to use JMerge without much success.

Is there any documentation or tutorial on using JMerge for me to have a
look at?

I have read the Jet Tutorial Part 2, but it is not helping much.

Does JMerge have to be run as a eclipse headless application?

Thanks
Pieter
Re: JMerge [message #30200 is a reply to message #30133] Wed, 01 August 2007 14:55 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Pieter:

There is not much JMerge documentation out there.

If you're using JMerge in JET templates, it is pretty straight forward. You
do the following:

1) Place a <java:merge/> tag somewhere in the template generating a java
class

2) In the template, any Java element (class, method, field, ...) that you
want to be updated by JMerge, add a @generated tag in the element's Java
doc.

I've created some JMerge FAQ entries with more details:

http://wiki.eclipse.org/M2T-JET-FAQ#User_Specific_Code


If you're interested in creating JMerge rules yourself, you are in for a
more challenging experience. The best I know of is an IBM developerWorks
article:

http://www.ibm.com/developerworks/library/os-ecemf3/

But, it does not really cover the topic is sufficient detail. I have an FAQ
entry on creating rules, but I haven't filled it out yet.

Paul


"pieter" <pieter@wbs.co.za> wrote in message
news:1185817643.17675.8.camel@localhost.localdomain...
> Hi,
>
> I am trying to use JMerge without much success.
>
> Is there any documentation or tutorial on using JMerge for me to have a
> look at?
>
> I have read the Jet Tutorial Part 2, but it is not helping much.
>
> Does JMerge have to be run as a eclipse headless application?
>
> Thanks
> Pieter
>
>
>
>
>
>
>
Re: JMerge [message #30662 is a reply to message #30200] Sat, 11 August 2007 16:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pieter.wbs.co.za

Hi,

Thanks for the information.

I have been using Jet1, with the generate(Object o) method.

Is this still possible with Jet2 or does the input have to be an xml
file. If not, is it possible to use JMerge with Jet1?

Thanks
Pieter

On Wed, 2007-08-01 at 07:55 -0700, Paul Elder wrote:
> Pieter:
>
> There is not much JMerge documentation out there.
>
> If you're using JMerge in JET templates, it is pretty straight forward. You
> do the following:
>
> 1) Place a <java:merge/> tag somewhere in the template generating a java
> class
>
> 2) In the template, any Java element (class, method, field, ...) that you
> want to be updated by JMerge, add a @generated tag in the element's Java
> doc.
>
> I've created some JMerge FAQ entries with more details:
>
> http://wiki.eclipse.org/M2T-JET-FAQ#User_Specific_Code
>
>
> If you're interested in creating JMerge rules yourself, you are in for a
> more challenging experience. The best I know of is an IBM developerWorks
> article:
>
> http://www.ibm.com/developerworks/library/os-ecemf3/
>
> But, it does not really cover the topic is sufficient detail. I have an FAQ
> entry on creating rules, but I haven't filled it out yet.
>
> Paul
>
>
> "pieter" <pieter@wbs.co.za> wrote in message
> news:1185817643.17675.8.camel@localhost.localdomain...
> > Hi,
> >
> > I am trying to use JMerge without much success.
> >
> > Is there any documentation or tutorial on using JMerge for me to have a
> > look at?
> >
> > I have read the Jet Tutorial Part 2, but it is not helping much.
> >
> > Does JMerge have to be run as a eclipse headless application?
> >
> > Thanks
> > Pieter
> >
> >
> >
> >
> >
> >
> >
>
>
Re: JMerge [message #30697 is a reply to message #30662] Sun, 12 August 2007 19:00 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Pieter:

JMerge is JET2 is via the java:merge tag.

For JMerge in JET1, the APIs org.eclipse.emf.codegen.merge are still there
for your use.

Paul
"pieter" <pieter@wbs.co.za> wrote in message
news:1186849354.3843.13.camel@localhost.localdomain...
> Hi,
>
> Thanks for the information.
>
> I have been using Jet1, with the generate(Object o) method.
>
> Is this still possible with Jet2 or does the input have to be an xml
> file. If not, is it possible to use JMerge with Jet1?
>
> Thanks
> Pieter
>
> On Wed, 2007-08-01 at 07:55 -0700, Paul Elder wrote:
>> Pieter:
>>
>> There is not much JMerge documentation out there.
>>
>> If you're using JMerge in JET templates, it is pretty straight forward.
>> You
>> do the following:
>>
>> 1) Place a <java:merge/> tag somewhere in the template generating a java
>> class
>>
>> 2) In the template, any Java element (class, method, field, ...) that you
>> want to be updated by JMerge, add a @generated tag in the element's Java
>> doc.
>>
>> I've created some JMerge FAQ entries with more details:
>>
>> http://wiki.eclipse.org/M2T-JET-FAQ#User_Specific_Code
>>
>>
>> If you're interested in creating JMerge rules yourself, you are in for a
>> more challenging experience. The best I know of is an IBM developerWorks
>> article:
>>
>> http://www.ibm.com/developerworks/library/os-ecemf3/
>>
>> But, it does not really cover the topic is sufficient detail. I have an
>> FAQ
>> entry on creating rules, but I haven't filled it out yet.
>>
>> Paul
>>
>>
>> "pieter" <pieter@wbs.co.za> wrote in message
>> news:1185817643.17675.8.camel@localhost.localdomain...
>> > Hi,
>> >
>> > I am trying to use JMerge without much success.
>> >
>> > Is there any documentation or tutorial on using JMerge for me to have a
>> > look at?
>> >
>> > I have read the Jet Tutorial Part 2, but it is not helping much.
>> >
>> > Does JMerge have to be run as a eclipse headless application?
>> >
>> > Thanks
>> > Pieter
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>>
>>
>
Previous Topic:[JET] How modular should JET be?
Next Topic:Re: ant for JET?
Goto Forum:
  


Current Time: Wed Nov 26 20:43:16 GMT 2014

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

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