Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » JMerger Example and Standalone Use(I need an example of using the non-deprecated JMerger and I need to use it outside Eclipse/EMF)
JMerger Example and Standalone Use [message #507550] Wed, 13 January 2010 19:48 Go to next message
vvernon is currently offline vvernonFriend
Messages: 4
Registered: January 2010
Junior Member
Hello,

I am new to JMerger. I saw I nice example of using the now deprecated version (org.eclipse.emf.codegen.jmerge.JMerger) on:

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

But I need an example for the newer version (org.eclipse.emf.codegen.merge.java.JMerger). Are there any available?

Also I am trying to understand if the newer JMerger can be used outside the Eclipse/EMF environment. I tried with the deprecated version but I ran into many dependency issues. After I finally got all the jars I needed to run JMerger it appeared that a NullPointerException indicated that some deep environment dependency on Eclipse prevented reuse outside.

Thanks for your help!
Re: JMerger Example and Standalone Use [message #507567 is a reply to message #507550] Wed, 13 January 2010 15:50 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
I'm cross posting this to the EMF newsgroup, as JMerger lives within EMF.

Ed, we await your wise response.

Paul

vvernon wrote:
> Hello,
>
> I am new to JMerger. I saw I nice example of using the now deprecated
> version (org.eclipse.emf.codegen.jmerge.JMerger) on:
>
> http://www.ibm.com/developerworks/library/os-ecemf3/
>
> But I need an example for the newer version
> (org.eclipse.emf.codegen.merge.java.JMerger). Are there any available?
>
> Also I am trying to understand if the newer JMerger can be used outside
> the Eclipse/EMF environment. I tried with the deprecated version but I
> ran into many dependency issues. After I finally got all the jars I
> needed to run JMerger it appeared that a NullPointerException indicated
> that some deep environment dependency on Eclipse prevented reuse outside.
>
> Thanks for your help!
>
Re: JMerger Example and Standalone Use [message #507570 is a reply to message #507567] Wed, 13 January 2010 20:53 Go to previous messageGo to next message
vvernon is currently offline vvernonFriend
Messages: 4
Registered: January 2010
Junior Member
Thanks for cleaning up after me.
Re: JMerger Example and Standalone Use [message #507572 is a reply to message #507567] Wed, 13 January 2010 21:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31777
Registered: July 2009
Senior Member
Comments below.

Paul Elder wrote:
> I'm cross posting this to the EMF newsgroup, as JMerger lives within EMF.
>
> Ed, we await your wise response.
I hope this one counts. :-P
>
> Paul
>
> vvernon wrote:
>> Hello,
>>
>> I am new to JMerger. I saw I nice example of using the now deprecated
>> version (org.eclipse.emf.codegen.jmerge.JMerger) on:
>>
>> http://www.ibm.com/developerworks/library/os-ecemf3/
>>
>> But I need an example for the newer version
>> (org.eclipse.emf.codegen.merge.java.JMerger). Are there any available?
The org.eclipse.emf.examples.jet.article2.codege example is updated to
use the non-deprecated merger.
>>
>> Also I am trying to understand if the newer JMerger can be used
>> outside the Eclipse/EMF environment.
I think the one that uses the AST facade, the default, does work stand
alone because it's JDT dependencies also work stand alone.
>> I tried with the deprecated version but I ran into many dependency
>> issues.
Yes, JDT's JDOM doesn't work stand alone.
>> After I finally got all the jars I needed to run JMerger it appeared
>> that a NullPointerException indicated that some deep environment
>> dependency on Eclipse prevented reuse outside.
Yes, I think so. But I seem to recall that the AST-based version did
work stand alone.
>>
>>
>> Thanks for your help!
>>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:JET Best way to escape standard Jet tags
Next Topic:[Check] Using models referencing other models in OAW
Goto Forum:
  


Current Time: Fri Mar 05 05:15:04 GMT 2021

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

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

Back to the top