Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Errors generating diagrams from *.gmfgen
Errors generating diagrams from *.gmfgen [message #470726] Mon, 14 May 2007 17:54 Go to next message
Francisco Javier Cano is currently offline Francisco Javier CanoFriend
Messages: 21
Registered: July 2009
Junior Member
Hello,

I'm working with UML2Tools sources downloaded from CVS, and I want to
add some dynamic templates to customize the code generated.

The problem is that I'm not able to generate code from .gmfgen files,
even on a fresh download (nothing added, nothing removed).

Whenever the generation process is launched several
"InvocationTargetException" exceptions are thrown during its execution.
These, as far as I know, are caused by some org.eclipse.uml2.* classes
that are not found, as their classpath is not added to the JETEmitter
that generates the code.

Did anyone else find this problem?
Is there any way to add jars to the JETEmitter that generates the code?
If not, is there any workaround?

Any help will be welcome :)

Thanks in advance,

Javi
--------
Re: Errors generating diagrams from *.gmfgen [message #470784 is a reply to message #470726] Wed, 16 May 2007 12:43 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Francisco_Javier_Cano_Munoz,

Please make sure that you have the [oeu2].diagram.codegen.* plugins in your
workspace.
If you have it, make sure that you are generating code with custom "Generate
UML2Tools diagram" action
provided by [oeu2].diagram.codegen plugin, instead of default "Generate diagram"
action, provided by GMF.

As far as I understand, it should fix the problem.

Regards,
Michael

Regards,
Mic

> Hello,
>
> I'm working with UML2Tools sources downloaded from CVS, and I want
> to add some dynamic templates to customize the code generated.
>
> The problem is that I'm not able to generate code from .gmfgen
> files, even on a fresh download (nothing added, nothing removed).
>
> Whenever the generation process is launched several
> "InvocationTargetException" exceptions are thrown during its
> execution. These, as far as I know, are caused by some
> org.eclipse.uml2.* classes that are not found, as their classpath is
> not added to the JETEmitter that generates the code.
>
> Did anyone else find this problem?
> Is there any way to add jars to the JETEmitter that generates the
> code?
> If not, is there any workaround?
> Any help will be welcome :)
>
> Thanks in advance,
>
> Javi
> --------
Re: Errors generating diagrams from *.gmfgen [message #594037 is a reply to message #470726] Wed, 16 May 2007 12:43 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Francisco_Javier_Cano_Munoz,

Please make sure that you have the [oeu2].diagram.codegen.* plugins in your
workspace.
If you have it, make sure that you are generating code with custom "Generate
UML2Tools diagram" action
provided by [oeu2].diagram.codegen plugin, instead of default "Generate diagram"
action, provided by GMF.

As far as I understand, it should fix the problem.

Regards,
Michael

Regards,
Mic

> Hello,
>
> I'm working with UML2Tools sources downloaded from CVS, and I want
> to add some dynamic templates to customize the code generated.
>
> The problem is that I'm not able to generate code from .gmfgen
> files, even on a fresh download (nothing added, nothing removed).
>
> Whenever the generation process is launched several
> "InvocationTargetException" exceptions are thrown during its
> execution. These, as far as I know, are caused by some
> org.eclipse.uml2.* classes that are not found, as their classpath is
> not added to the JETEmitter that generates the code.
>
> Did anyone else find this problem?
> Is there any way to add jars to the JETEmitter that generates the
> code?
> If not, is there any workaround?
> Any help will be welcome :)
>
> Thanks in advance,
>
> Javi
> --------
Previous Topic:Regarding bug 162570 ([ClassD] Basic profiles support for ClassD elements)
Next Topic:Command for creating Generalization
Goto Forum:
  


Current Time: Tue Mar 19 03:51:15 GMT 2024

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

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

Back to the top