Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [TCS] TCS and UML profiles
[TCS] TCS and UML profiles [message #16660] Thu, 17 July 2008 05:08 Go to next message
Eclipse UserFriend
Hi,
I'm really interested by the TCS capabilities, jointly used with ATL.

In our case, we have decided to use a UML profile to give a graphical
concrete syntax to our DSL, using the Papyrus customization capabilities
to rapidly have a dedicated editor.

We'd like to also associate a textual concrete syntax to this DSL , and we
were wondering if TCS would be able to directly associate this syntax to
the UML+Profile metamodel.

The other solution I see is to use an intermediate DSL meta-model with a
transfo from this one to the UML+Profile, but this solution will imply
bigger efforts when the metamodel of our DSL will evolve.

Would you see any other solution?
Thanks for you help,

Best regards,

Sebastien
Re: [TCS] TCS and UML profiles [message #18143 is a reply to message #16660] Wed, 23 July 2008 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi Sébastien,

> In our case, we have decided to use a UML profile to give a graphical
> concrete syntax to our DSL, using the Papyrus customization capabilities
> to rapidly have a dedicated editor.
>
> We'd like to also associate a textual concrete syntax to this DSL , and
> we were wondering if TCS would be able to directly associate this syntax
> to the UML+Profile metamodel.
> The other solution I see is to use an intermediate DSL meta-model with a
> transfo from this one to the UML+Profile, but this solution will imply
> bigger efforts when the metamodel of our DSL will evolve.

With TCS you can define textual syntaxes for specific metamodels.


In case you have a DSL that is not defined as a metamodel but by another
mechanism (e.g., a UML profile) you need to create a metamodel
representation of your DSL. This corresponds to the "other solution"
that you have identified.



In any case, it may be necessary to deal with evolution:
- updating the TCS model when the metamodel evolves,
- updating the metamodel when the DSL definition evolves,
- etc.

I would recommend using transformations to automate most of these
problems. This may for instance be a transformation to automatically
create the metamodel from the DSL definition (e.g., UML profile).


Note that it may be easier to transform a metamodel into a UML profile
than the reverse operation. Therefore, you may prefer to define a
transformation from the metamodel to the profile.
I personally like this solution because you have a simple representation
of your DSL as a metamodel (abstract syntax) plus the definitions of two
concrete syntaxes:
- Graphical, using a transformation to a UML profile,
- Textual, using a TCS model.


Regards,

Frédéric Jouault
Re: [TCS] TCS and UML profiles [message #18280 is a reply to message #18143] Thu, 24 July 2008 11:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Frederic, and thanks for your answer!

It confirms the idea I had.

However I was wondering if the "static profile" mechanism could be used.
It externalizes the ecore meta-model normally included in the UML profile
and permits to consider stereotyped elements as instances of this
meta-model.
(This mecanism is used in the latest version of Papyrus for the
customization).

But I don't know exactly how it works, I have to investigate more...

Thanks again for all the nice work you do,

Best regards,

Sebastien
Re: [TCS] TCS and UML profiles [message #18297 is a reply to message #18280] Fri, 25 July 2008 09:48 Go to previous message
Eclipse UserFriend
Hi Sébastien,

> It confirms the idea I had.
> However I was wondering if the "static profile" mechanism could be used.
> It externalizes the ecore meta-model normally included in the UML
> profile and permits to consider stereotyped elements as instances of
> this meta-model.
> (This mecanism is used in the latest version of Papyrus for the
> customization).
>
> But I don't know exactly how it works, I have to investigate more...

This is an interesting issue. Please let us know the results of your
investigation :-).


> Thanks again for all the nice work you do,

You're welcome, and thanks.



Best regards,

Frédéric Jouault
Previous Topic:Mode, Deep and WordRule
Next Topic:[TCS] operatorTemplate source list containment
Goto Forum:
  


Current Time: Sun May 11 22:30:29 EDT 2025

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

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

Back to the top