Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: JMerger Example and Standalone Use
Re: JMerger Example and Standalone Use [message #507566] Wed, 13 January 2010 20:39 Go 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 #507574 is a reply to message #507566] Wed, 13 January 2010 21:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30631
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!
>>
Re: JMerger Example and Standalone Use [message #507613 is a reply to message #507574] Thu, 14 January 2010 04:43 Go to previous messageGo to next message
vvernon is currently offline vvernonFriend
Messages: 4
Registered: January 2010
Junior Member
Ed,

Thanks for your help, but I can't find what you referenced. I grep'd and googled for: org.eclipse.emf.examples.jet.article2.codegen

I did find a CodeGen class, but it uses the deprecated JMerger, and it deals with JET output, not generated Java sources.

Can you provide a bit more context for me? Where would I find the example you are referencing?

Thanks!
Re: JMerger Example and Standalone Use [message #507703 is a reply to message #507613] Thu, 14 January 2010 07:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30631
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050905050901040805020502
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

If it's not available as an installable example or as part of the
article (though it's the source for it), then you can get it straight
from CVS:

http://wiki.eclipse.org/EMF/Getting_Source


vvernon wrote:
> Ed,
>
> Thanks for your help, but I can't find what you referenced. I grep'd
> and googled for: org.eclipse.emf.examples.jet.article2.codegen
>
> I did find a CodeGen class, but it uses the deprecated JMerger, and it
> deals with JET output, not generated Java sources.
>
> Can you provide a bit more context for me? Where would I find the
> example you are referencing?
>
> Thanks!

--------------050905050901040805020502
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
If it's not available as an installable example or as part of the
article (though it's the source for it), then you can get it straight
from CVS:<br>
<blockquote><a href="http://wiki.eclipse.org/EMF/Getting_Source">http://wiki.eclipse.org/EMF/Getting_Source</a><br>
</blockquote>
<br>
vvernon wrote:
<blockquote cite="mid:him7ea$joc$1@build.eclipse.org" type="cite">Ed,
<br>
<br>
Thanks for your help, but I can't find what you referenced. I grep'd
and googled for: org.eclipse.emf.examples.jet.article2.codegen
<br>
<br>
I did find a CodeGen class, but it uses the deprecated JMerger, and it
deals with JET output, not generated Java sources.
<br>
<br>
Can you provide a bit more context for me? Where would I find the
example you are referencing?
<br>
<br>
Thanks!
<br>
</blockquote>
</body>
</html>

--------------050905050901040805020502--
Re: JMerger Example and Standalone Use [message #507880 is a reply to message #507703] Fri, 15 January 2010 00:37 Go to previous messageGo to next message
vvernon is currently offline vvernonFriend
Messages: 4
Registered: January 2010
Junior Member
Ed,

Thanks, I think I found the article:

http://www.eclipse.org/articles/Article-JET2/jet_tutorial2.h tml

This is still based on the deprecated version. But at least now I see how to provide missing pieces that were probably causing the NPE before. I will give it a shot.

If you know for sure that a more recent article exists that documents the newer JMerger please point me to the URL.

Thanks!
Re: JMerger Example and Standalone Use [message #507895 is a reply to message #507880] Fri, 15 January 2010 01:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30631
Registered: July 2009
Senior Member
I think only the code in CVS was updated to fix the deprecation warnings...

vvernon wrote:
> Ed,
>
> Thanks, I think I found the article:
>
> http://www.eclipse.org/articles/Article-JET2/jet_tutorial2.h tml
>
> This is still based on the deprecated version. But at least now I see
> how to provide missing pieces that were probably causing the NPE
> before. I will give it a shot.
>
> If you know for sure that a more recent article exists that documents
> the newer JMerger please point me to the URL.
>
> Thanks!
Previous Topic:instanceof for (dynamic) EObject
Next Topic:Teneo: create table fails without any warning message
Goto Forum:
  


Current Time: Fri Nov 15 00:19:41 GMT 2019

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

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

Back to the top