Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Problem while re-generating UML2Tools clazz diagram
Problem while re-generating UML2Tools clazz diagram [message #475280] Thu, 07 August 2008 08:07 Go to next message
Niels Brouwers is currently offline Niels BrouwersFriend
Messages: 80
Registered: July 2009
Member
Hi all,

I want to customize the UML2Tools class diagram to make it specific for
our domain. To start, I first want to re-generate the UML2Tools diagram
using the GMF models from plug-in org.eclipse.uml2.diagram.def

What I did was:
- import plugin org.eclipse.uml2.diagram.def as source project
- import plugin org.eclipse.uml2.diagram.clazz as source project
- selected classDiagram.gmfgen and started the generation of the diagram
code ('Generate UML2Tools Diagrams option'). Furthermore, I have checked
whether the path for the dynamic templates was correct, and it seemed to
be.
- I have ignored the validation errors -> proceed
- After a while the following error pops up:

Problems while generating code
Exception (Couldn't find operation
'hasConformableSemanticChildren(GenDiagram)' for GenDiagram.:in
aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line 40
'hasConformableSemanticChildren(this)') while generating code
Couldn't find operation 'hasConformableSemanticChildren(GenDiagram)' for
GenDiagram.:in
aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line 40
'hasConformableSemanticChildren(this)'


It seems to be a problem with the dynamic templates, but I can't find what
is causing the problem.

Additional info:
I am currently working with Borland Together 2008 M5, using updated with
newest versions of UML2Tools and GMF.

Can someone please help me with this problem?

Kind regards,
Niels Brouwers.


Kind regards,
Niels Brouwers.
Re: Problem while re-generating UML2Tools clazz diagram [message #475281 is a reply to message #475280] Thu, 07 August 2008 11:35 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Niels,

You are correct, the problem is in xPand template.
The message says, that dynamic template from [oeud].def plugin cannot find
xTend function Utils.hasConformableSemanticChildren(), which is located in
org.eclipse.gmf.codegen plugin. The xTend expression was added after M5 release.
The plugin (org.eclipse.gmf.codegen) is a part of GMF-SDK, however it isn't
included to GMF-Runtime build. You sayd that you used M5 build as a base,
and installed the newest version of GMF above. GMF provides two kinds of
builds
-Runtime - to _use_ existing diagram editor generated with GMF
-SDK - to _develop_ new diagram editor. xPand/xTend files are part of the
SDK component.
I suggest that you installed the newest version of GMF-Runtime, while GMF-generation
features are still stale. Could you please check the version of GMF-generation
features, including org.eclipse.gmf.codegen? Are they up-to-date or obsolete?
If they are obsolete, they have to be updated.

Best wishes,
Tanya.

> Hi all,
>
> I want to customize the UML2Tools class diagram to make it specific
> for our domain. To start, I first want to re-generate the UML2Tools
> diagram using the GMF models from plug-in org.eclipse.uml2.diagram.def
>
> What I did was:
> - import plugin org.eclipse.uml2.diagram.def as source project
> - import plugin org.eclipse.uml2.diagram.clazz as source project
> - selected classDiagram.gmfgen and started the generation of the
> diagram
> code ('Generate UML2Tools Diagrams option'). Furthermore, I have
> checked
> whether the path for the dynamic templates was correct, and it seemed
> to
> be.
> - I have ignored the validation errors -> proceed
> - After a while the following error pops up:
> Problems while generating code
> Exception (Couldn't find operation
> 'hasConformableSemanticChildren(GenDiagram)' for GenDiagram.:in
> aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line
> 40
> 'hasConformableSemanticChildren(this)') while generating code
> Couldn't find operation 'hasConformableSemanticChildren(GenDiagram)'
> for
> GenDiagram.:in
> aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line
> 40 'hasConformableSemanticChildren(this)'
>
> It seems to be a problem with the dynamic templates, but I can't find
> what is causing the problem.
>
> Additional info:
> I am currently working with Borland Together 2008 M5, using updated
> with
> newest versions of UML2Tools and GMF.
> Can someone please help me with this problem?
>
> Kind regards,
> Niels Brouwers.
Re: Problem while re-generating UML2Tools clazz diagram [message #475282 is a reply to message #475281] Thu, 07 August 2008 12:40 Go to previous messageGo to next message
Niels Brouwers is currently offline Niels BrouwersFriend
Messages: 80
Registered: July 2009
Member
Hello Tatiana,

thank you very much for your answer. I understand most part of your
answer, and did what you told me to do. I installed the most recent
version of GMF SDK and this solved the problem. The diagram code was
generated successfully.

One additional question, if you don't mind: can I safely ignore the gmfgen
validation errors? I am a bit worried about them to be honest.

Kind regards,
Niels Brouwers.


Kind regards,
Niels Brouwers.
Re: Problem while re-generating UML2Tools clazz diagram [message #475283 is a reply to message #475282] Thu, 07 August 2008 13:22 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
I'm glad to help you, Niels,

> One additional question, if you don't mind: can I safely ignore the
> gmfgen validation errors? I am a bit worried about them to be honest.
All existing GMF validation errors in UML2Tools are covered with custom code,
so you can safely ignore them. To be honest, they annoy me too, because they
can distract the attention from the real errors. I thought how to avoid them,
or filter 'known' validation error, but I haven't found solution yet. Maybe
I'll return to the problem later.

Regards,
Tanya.
Re: Problem while re-generating UML2Tools clazz diagram [message #622585 is a reply to message #475280] Thu, 07 August 2008 11:35 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Niels,

You are correct, the problem is in xPand template.
The message says, that dynamic template from [oeud].def plugin cannot find
xTend function Utils.hasConformableSemanticChildren(), which is located in
org.eclipse.gmf.codegen plugin. The xTend expression was added after M5 release.
The plugin (org.eclipse.gmf.codegen) is a part of GMF-SDK, however it isn't
included to GMF-Runtime build. You sayd that you used M5 build as a base,
and installed the newest version of GMF above. GMF provides two kinds of
builds
-Runtime - to _use_ existing diagram editor generated with GMF
-SDK - to _develop_ new diagram editor. xPand/xTend files are part of the
SDK component.
I suggest that you installed the newest version of GMF-Runtime, while GMF-generation
features are still stale. Could you please check the version of GMF-generation
features, including org.eclipse.gmf.codegen? Are they up-to-date or obsolete?
If they are obsolete, they have to be updated.

Best wishes,
Tanya.

> Hi all,
>
> I want to customize the UML2Tools class diagram to make it specific
> for our domain. To start, I first want to re-generate the UML2Tools
> diagram using the GMF models from plug-in org.eclipse.uml2.diagram.def
>
> What I did was:
> - import plugin org.eclipse.uml2.diagram.def as source project
> - import plugin org.eclipse.uml2.diagram.clazz as source project
> - selected classDiagram.gmfgen and started the generation of the
> diagram
> code ('Generate UML2Tools Diagrams option'). Furthermore, I have
> checked
> whether the path for the dynamic templates was correct, and it seemed
> to
> be.
> - I have ignored the validation errors -> proceed
> - After a while the following error pops up:
> Problems while generating code
> Exception (Couldn't find operation
> 'hasConformableSemanticChildren(GenDiagram)' for GenDiagram.:in
> aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line
> 40
> 'hasConformableSemanticChildren(this)') while generating code
> Couldn't find operation 'hasConformableSemanticChildren(GenDiagram)'
> for
> GenDiagram.:in
> aspects::xpt::diagram::updater::containerBaseCanonicalMethod s on line
> 40 'hasConformableSemanticChildren(this)'
>
> It seems to be a problem with the dynamic templates, but I can't find
> what is causing the problem.
>
> Additional info:
> I am currently working with Borland Together 2008 M5, using updated
> with
> newest versions of UML2Tools and GMF.
> Can someone please help me with this problem?
>
> Kind regards,
> Niels Brouwers.
Re: Problem while re-generating UML2Tools clazz diagram [message #622587 is a reply to message #475281] Thu, 07 August 2008 12:40 Go to previous message
Niels Brouwers is currently offline Niels BrouwersFriend
Messages: 80
Registered: July 2009
Member
Hello Tatiana,

thank you very much for your answer. I understand most part of your
answer, and did what you told me to do. I installed the most recent
version of GMF SDK and this solved the problem. The diagram code was
generated successfully.

One additional question, if you don't mind: can I safely ignore the gmfgen
validation errors? I am a bit worried about them to be honest.

Kind regards,
Niels Brouwers.


Kind regards,
Niels Brouwers.
Re: Problem while re-generating UML2Tools clazz diagram [message #622588 is a reply to message #475282] Thu, 07 August 2008 13:22 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
I'm glad to help you, Niels,

> One additional question, if you don't mind: can I safely ignore the
> gmfgen validation errors? I am a bit worried about them to be honest.
All existing GMF validation errors in UML2Tools are covered with custom code,
so you can safely ignore them. To be honest, they annoy me too, because they
can distract the attention from the real errors. I thought how to avoid them,
or filter 'known' validation error, but I haven't found solution yet. Maybe
I'll return to the problem later.

Regards,
Tanya.
Previous Topic:Problem while re-generating UML2Tools clazz diagram
Next Topic:Generating UML2Tools diagram: org/eclipse/gmf/gmfgraph/LayoutRef
Goto Forum:
  


Current Time: Fri Mar 29 06:57:43 GMT 2024

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

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

Back to the top