Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL & UML Modeler] Problem with modeler
[ATL & UML Modeler] Problem with modeler [message #74221] Mon, 04 February 2008 09:55 Go to next message
Eclipse UserFriend
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 #74313 is a reply to message #74221] Tue, 05 February 2008 11:38 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000603060305020007080500
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

Is your uml model correct (outside of papyrus).
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.

Best Regards,

William

Emanuele Zapparoli a
Re: [ATL & UML Modeler] Problem with modeler [message #74526 is a reply to message #74313] Tue, 05 February 2008 19:29 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:[ATL] AtlLaunch
Next Topic:[ATL] Compiling ATL from CVS & AntLR
Goto Forum:
  


Current Time: Thu Apr 25 06:30:03 GMT 2024

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

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

Back to the top