Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Some questions about Class.javajet template(and how to see EMF code generation in debugger?)
Some questions about Class.javajet template [message #530783] Fri, 30 April 2010 20:44 Go to next message
Alexey  is currently offline Alexey Friend
Messages: 36
Registered: March 2010
Member
Am I understand correct, that Class.javajet template is used in default case by EMF twice: to produce interface and to produce implementation?

Is it possible (should be) to see it all in debugger. Can you give an advice how to run codegen in debugger with ability to set breakpoints in EMF code (which is used from multiple plugins)? I can see code, adding sources, but don't see how to start it all in debugger, except of probably going with org.eclipse.emf.codegen.ecore.Generator from command line... But then breakpoints is a pain, no IDE to help.

Thanks

Alexey
Re: Some questions about Class.javajet template [message #530827 is a reply to message #530783] Sat, 01 May 2010 11:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Alexey,

Comments below.

Alexey wrote:
> Am I understand correct, that Class.javajet template is used in
> default case by EMF twice: to produce interface and to produce
> implementation?
Yes.
> Is it possible (should be) to see it all in debugger. Can you give an
> advice how to run codegen in debugger with ability to set breakpoints
> in EMF code (which is used from multiple plugins)? I can see code,
> adding sources, but don't see how to start it all in debugger, except
> of probably going with org.eclipse.emf.codegen.ecore.Generator from
> command line... But then breakpoints is a pain, no IDE to help.
Try setting a breakpoint in AbstractGeneratorAdapter.generateJava.
>
> Thanks
>
> Alexey


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Some questions about Class.javajet template [message #530905 is a reply to message #530783] Sun, 02 May 2010 16:27 Go to previous messageGo to next message
Alexey  is currently offline Alexey Friend
Messages: 36
Registered: March 2010
Member
Ed, thanks for answering. Please let me ask for some clarification:

So am I understand correct, that to debug emf code generation the only way is:
1. set up eclipse to listen to remote java application (with localhost as a server)
2. set breakpoints in emf java source
3. start org.eclipse.emf.codegen.ecore.Generator from command line in debugging mode

And there is no (easy) way to have emf code generation running from withing eclipse in debugging mode. Normally you would run codegen pluging from UI, selecting e.g. Generate Model. But no way to set it up to run it in debug mode?
Re: Some questions about Class.javajet template [message #530976 is a reply to message #530905] Mon, 03 May 2010 09:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Alexey,

You can launch a runtime workbench under debug control to
debug/monitor/observe any parts of the IDE itself.


Alexey wrote:
> Ed, thanks for answering. Please let me ask for some clarification:
>
> So am I understand correct, that to debug emf code generation the only
> way is:
> 1. set up eclipse to listen to remote java application (with localhost
> as a server)
> 2. set breakpoints in emf java source
> 3. start org.eclipse.emf.codegen.ecore.Generator from command line in
> debugging mode
>
> And there is no (easy) way to have emf code generation running from
> withing eclipse in debugging mode. Normally you would run codegen
> pluging from UI, selecting e.g. Generate Model. But no way to set it
> up to run it in debug mode?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Experience with emf and .NET?
Next Topic:Having annotated java extend other external interfaces
Goto Forum:
  


Current Time: Fri Apr 26 11:44:10 GMT 2024

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

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

Back to the top