[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: JMerge customization

Hi Timothy,

When we implemented the AST layer to support Java 5, we had to tackle the conversion from Java 1.4 enumeration to proper enums.  This work is done by org.eclipse.emf.codegen.merge.java.facade.ast.ASTNodeConverter, which may be a good starting point for you since it manipulates the existing code before doing the merge.

I am trying to remember the gotchas (I know there were some) but my memory is failing on me.  I am quite sure that one of the problems we had was related either to reuse the modified AST during the merge or to apply the changes before the merge itself.  I am sorry this is too vague but unfortunately I can't dig into the code right now.

Feel free to post questions or your finding as you go ;-)

Cheers,
Marcelo

Paul Elder wrote:
Timothy:

I'm cross posting this to the eclipse.tools.emf newsgroup, as the JMerge 
code is part of EMF.

Paul

"Timothy Marc" <timothymarc@xxxxxxxxxx> wrote in message 
news:gb2qrq$s80$1@xxxxxxxxxxxxxxxxx...
  
Hi all,

i want to modify the JMerge AST of the existing code programmatically in 
an JET library, i want to implement. This JMerge process should do some 
addttional things like analyzing and reporting the existing AST before 
merging. Does anyone has some experiences how to extend the basic JMerge 
functionality?

Any help is appreciated. Thanks in advance.
Timothy