[ATL & UML Modeler] Problem with modeler [message #74221] |
Mon, 04 February 2008 09:55 |
Eclipse User |
|
|
|
Originally posted by: zappasan.gmail.com
Hi!
I've executed a transformation from a UML2 Model to a UML2 Model. When I
try to create a UML class diagram with Papyrus UML (1.8.1) from a .uml
file, using the .uml that I've in output from ATL, I've only the empty
grid for drawing the diagram but nothing else. Is question of profiles
that I'have not added to the target model, or something else?
Anyone can help-me, please?
Thank you
Emanuele
|
|
|
|
Re: [ATL & UML Modeler] Problem with modeler [message #74526 is a reply to message #74313] |
Tue, 05 February 2008 19:29 |
Eclipse User |
|
|
|
Originally posted by: zappasan.gmail.com
Hi William
William Piers wrote:
> Is your uml model correct (outside of papyrus).
I've to set the properties type, but for now I'm not able. I've used a lot
of solutions ( importing the same packeges of the source model where are
packaged the uml::datatype profiles used in the source model; using this
istruction
type<-UML2!DataType.allInstancesFrom('UML2')->any(e | e.name = 'uml::string')
)
but nothing to do. Have you some advice about it?
> I'm not sure but I don't think that the papyrus diagram is initialized :
> you may perhaps drag and drop elements from the outline model to the
> papyrus diagram view.
How can I initialize the diagram?
Thank you
Emanuele
|
|
|
Re: [ATL & UML Modeler] Problem with modeler [message #74581 is a reply to message #74526] |
Wed, 06 February 2008 09:34 |
Eclipse User |
|
|
|
Originally posted by: frederic_thomas_fr.yahoo.fr
Hi,
Emanuele Zapparoli a écrit :
> William Piers wrote:
>
>> I'm not sure but I don't think that the papyrus diagram is initialized
>> : you may perhaps drag and drop elements from the outline model to
>> the papyrus diagram view.
>
> How can I initialize the diagram?
William, you are right. Papyrus needs two models : the fisrt one is the
uml model (mymodel.uml) which is the model conformed to the UML
metamodel. You can open this model with the eclipse UML2 plugin in order
to check if the ATL transformation works fine. The second model is the
di2 one which stores the graphical forms. That last is conformed to the
DI2 metamodel. There is no automatic layout in papyrus.
Hence, Emanuele, if you want to initialize the diagram, you have to
write an ATL transformation from your input metamodel to the DI2
metamodel. As input of this transformation you need the uml model that
you have already generated in order to link the graphical forms to the
uml elements.
This is an example of the ATL module head :
module MyModule;
create OUT : DI2 from IN: MySourceMetamodel, myUMLModel : UML2;
Frédéric
>
> Thank you
>
> Emanuele
>
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds