Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: RE: [mdt-uml2tools.dev] genClass in deployment diagram

Slim,

 

The missing generator properties are provided by the UML2 code generator; if you need these features, you’ll have to use a UML model as the source for your EMF models instead of an Ecore model…

 

Cheers,

 

Kenn Hussey
Program Manager, EA/Studio

[Embarcadero Technologies Logo]

Embarcadero Technologies, Inc. | www.embarcadero.com 
110 Spadina Avenue, Suite 400 | TorontoON  M5V 2K4
Kenn.Hussey@xxxxxxxxxxxxxxx
Mobile: 613-301-9105

From: mdt-uml2tools.dev-bounces@xxxxxxxxxxx [mailto:mdt-uml2tools.dev-bounces@xxxxxxxxxxx] On Behalf Of Slim kallel
Sent: Thursday, March 20, 2008 10:36 AM
To: mdt-uml2tools.dev@xxxxxxxxxxx
Subject: RE: RE: [mdt-uml2tools.dev] genClass in deployment diagram

 

Hi,

I tried to add new class "Myclass" in the ecore file.

if I genrate a new UML.genmodel (I delete the first one).
The new genmodel file is not equivalent to the first one. Also, Some properties do not exist.

Factory Methods="true"
Pluralized Getters="true"
Cache Adapter Support="true"
Invariant Prefix="validate"
Safe Strings ="false"..

and also for the UMl package:

Operation package = "org.eclipse.uml2.uml.internal.operations"
Ressource Interface="true"

(please see attached images)


The generated code (Generate Model Code) et le generated plugin ( Generate Edit Code) conatain also some errors.


I have 3 related questions:

1- How to extends correctly the meta-model by new classes??
2- How to generate the coorect UML.genmodel in order to generate the correct code.
3- How to use the new plugin "org.eclipse.uml2.uml" in the plugin "org.eclipse.uml2.diagramm.def" should I export in Jar file.


Thank you for your help.

Slim







Hello,

It looks like general GMF problem. I looked at the GMF code and it does not seem that class org.eclipse.gmf.internal.bridge.transform.GenModelDetector knows how to process the situation when the mapping consists of the elements from different ecore's.

If possible please send me your ecore + mapping (or simple extract with the only problem element) for investigation.

If it is in fact a GMF problem, I hope it is severe enough to be fixed soon.
But as a temporarily workaround, I can suggest to use the basic ecore metaclass extended by some stereotype instead of new EClass extends Uml-EClass. You will need to add the constraint to existing mapping (that checks that stereotype is not applied) and opposite constraint to your new mapping.

Regards,
Michael




>Hi all,
>
>I try now to extend deployment diagram by new concepts.
>
>
>I add a new element "softwareElement" in meta class (org.eclipse.uml2.uml) and I added this element in the
>plugin (org.eclipse.uml2.diagram.def).
>
>When I tried to generate the deploymentDigaram.gmfgen (using "create generator model") an error occurred: "Can not find
>genClass for class' SoftwareElement 'in package uml".
>
>
>Really, I need your Help.
>Any response is welcome,
>
>Regards,
>
>slim



 


Envoyé avec Yahoo! Mail.
La boite email la plus appreciée au monde.


Back to the top