Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Create ECORE for UML diagram(Create ECORE for UML diagram)
Create ECORE for UML diagram [message #485549] Sun, 13 September 2009 07:47 Go to next message
Dusan Savic is currently offline Dusan Savic
Messages: 62
Registered: July 2009
Member
Dear all,
Can I use some UML tools to get emf model for UML
activity or state machine diagram or I can do that only from class diagram?

If there isn't that mean that I need to write model2model transformation.

Thanks a lot.
D.S..

Re: Create ECORE for UML diagram [message #485629 is a reply to message #485549] Mon, 14 September 2009 08:29 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Hi Dusane,

You can only do it from a clas diagram view. This transformation seems
only to be working at class diagram diagram level.
btw, you can recreate a class diagram from your model using model to model
transformation ant then customize EMF serialization to create activity and
state diagram diagram. The problem is that during these transformation
stages you are going to loose model information and you will never get any
graphical representation (e.g. the graphical presentation is lost only the
model is transformable)

If you have an existing model did you ever consider to manually recreate
it ? I mean that even if it is 10 or 50 days of work, it would always be
more accurate information than trying to push an elephant in a mouse hole
!!

Enjoy modeling :-)
Re: Create ECORE for UML diagram [message #485679 is a reply to message #485629] Mon, 14 September 2009 13:06 Go to previous messageGo to next message
Dusan Savic is currently offline Dusan Savic
Messages: 62
Registered: July 2009
Member
Dear V.Varnica,
so what is your suggestion to create UML diagram?

Using TOPCASED it is possible to create UML class diagram
from existing UML model. But only class diagram.
As you told for the other UML diagram, visual presentation is losted.

So where can I get metamodel for visual presentation
for example activity diagram?
If I have metamodel I can create model for example programatically.

Thanks.



Re: Create ECORE for UML diagram [message #485702 is a reply to message #485679] Mon, 14 September 2009 14:20 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Dragi Dusan,

Yes, I do recommend to use UML.
You first need to upgrade to UML 2.2 metamodel and then recreate
dynamically your diagram from this UML superstructure. You can see an
example at :
http://www.forum-omondo.com/documentation_eclipseuml_2008/ec lipseuml2008_dynamic_navigation.html

Topcased if based on GMF and not on the UML metamodel therefore it is
impossible to recreate views from your existing model even if you upgrade
it. You can still try the model to model transformation but to get a
compatible GMF project from that, I doubt of it.

There is today a little split in the Eclipse modeling community between
modeling approaches and the use or not of GMF or EMF transformation stage.
I mean what is the best modeling approach and why do we model ?
Is-it important to spend time on the glue of GEF & EMF mapping or on Ecore
using EMF serialization for UML purposes ?
We have selected the second approach and I am persuaded that sooner or
later the market will adopt it.
The best model to model transformation is no transformation at all :-)

Vlad Varnica
Omondo
Re: Create ECORE for UML diagram [message #486132 is a reply to message #485702] Wed, 16 September 2009 13:28 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOT
Messages: 247
Registered: July 2009
Senior Member
Vlad Varnica a écrit :
> Dragi Dusan,
>
> Yes, I do recommend to use UML.
> You first need to upgrade to UML 2.2 metamodel and then recreate
> dynamically your diagram from this UML superstructure. You can see an
> example at :
> http://www.forum-omondo.com/documentation_eclipseuml_2008/ec lipseuml2008_dynamic_navigation.html
>
>
> Topcased if based on GMF and not on the UML metamodel
Vlad, that is not true !
The UML Editor shipped as part of Topcased is based on the UML metamodel
(this is the *.uml file, corresponding to the semantic model), but also
on a custom Diagram Interchange metamodel (this is the *.umldi file,
corresponding to the graphical model).
> therefore it is
> impossible to recreate views from your existing model even if you
> upgrade it.
Thus it is completely possible to recreate your diagrams from the
semantic model only. This is indeed a statement that Dusan made in a
previous message on this thread ("Using TOPCASED it is possible to
create UML class diagram from existing UML model."). However there is
indeed some limitations, particularly on Sequence diagrams, where
diagrams can not be recreated automatically.

Regards,
Jacques
You can still try the model to model transformation but to
> get a compatible GMF project from that, I doubt of it.
> There is today a little split in the Eclipse modeling community between
> modeling approaches and the use or not of GMF or EMF transformation
> stage. I mean what is the best modeling approach and why do we model ?
> Is-it important to spend time on the glue of GEF & EMF mapping or on
> Ecore using EMF serialization for UML purposes ?
> We have selected the second approach and I am persuaded that sooner or
> later the market will adopt it. The best model to model transformation
> is no transformation at all :-)
>
> Vlad Varnica
> Omondo
>
>
>
Re: Create ECORE for UML diagram [message #486307 is a reply to message #486132] Thu, 17 September 2009 08:42 Go to previous messageGo to next message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Jacques,

No this is not possible because for each diagram you get a model or you
can use GMF model for project level then try to create xmi from it. The
problem is that this GMF top XMI mapping doesn't work !! It means that you
get nothing really usable at XMI level !!

I also really don't see where is the metamodel with Topcased, you
certainly mean either model at diagram level or GMF model but certainly
not metamodel.
Would you like I give more explanation on this model, metamodel
tranformation stages it seems that there is some confusion here ?

Vlad,
Omondo
Re: Create ECORE for UML diagram [message #486317 is a reply to message #486307] Thu, 17 September 2009 09:17 Go to previous messageGo to next message
Dusan Savic is currently offline Dusan Savic
Messages: 62
Registered: July 2009
Member
Dear Vlad & Jacques,
I think that Jacques thinks that it is possible to create (initialize)
UML diagrams for example state machine diagram if you have uml model for that diagram.

It is work if I create uml diagram for example using Eclipse UML tools.
That model I copy to next project and initialize UML diagrams propertly.

On the other hand if I create uml diagram using Topcased and initialize it
with eclipse uml tools it doesnt work (because .uml model from 2 tools isn't the same).

This is expected but I think that it is possible to create transformation for this two type of uml model.

What are you think about this?

Best regards
D.S.


Re: Create ECORE for UML diagram [message #486353 is a reply to message #486317] Thu, 17 September 2009 11:44 Go to previous message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Dusan,

All Eclipse tools are using the same EclipseUML2 metamodel therefore the
past and copy should be possible but it is not working !!
Why .... I will let them reply even if I know the answer :-)

As I have said previously the "BEST TRANSFORMATION IS NO TRANSFORMATION AT
ALL" !!

Vlad
OMONDO
Re: Create ECORE for UML diagram [message #624837 is a reply to message #485629] Mon, 14 September 2009 13:06 Go to previous message
Dusan Savic is currently offline Dusan Savic
Messages: 62
Registered: July 2009
Member
Dear V.Varnica,
so what is your suggestion to create UML diagram?

Using TOPCASED it is possible to create UML class diagram
from existing UML model. But only class diagram.
As you told for the other UML diagram, visual presentation is losted.

So where can I get metamodel for visual presentation
for example activity diagram?
If I have metamodel I can create model for example programatically.

Thanks.
Re: Create ECORE for UML diagram [message #624838 is a reply to message #624837] Mon, 14 September 2009 14:20 Go to previous message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Dragi Dusan,

Yes, I do recommend to use UML.
You first need to upgrade to UML 2.2 metamodel and then recreate
dynamically your diagram from this UML superstructure. You can see an
example at :
http://www.forum-omondo.com/documentation_eclipseuml_2008/ec lipseuml2008_dynamic_navigation.html

Topcased if based on GMF and not on the UML metamodel therefore it is
impossible to recreate views from your existing model even if you upgrade
it. You can still try the model to model transformation but to get a
compatible GMF project from that, I doubt of it.

There is today a little split in the Eclipse modeling community between
modeling approaches and the use or not of GMF or EMF transformation stage.
I mean what is the best modeling approach and why do we model ?
Is-it important to spend time on the glue of GEF & EMF mapping or on Ecore
using EMF serialization for UML purposes ?
We have selected the second approach and I am persuaded that sooner or
later the market will adopt it.
The best model to model transformation is no transformation at all :-)

Vlad Varnica
Omondo
Re: Create ECORE for UML diagram [message #624840 is a reply to message #485702] Wed, 16 September 2009 13:28 Go to previous message
Jacques LESCOT is currently offline Jacques LESCOT
Messages: 247
Registered: July 2009
Senior Member
Vlad Varnica a écrit :
> Dragi Dusan,
>
> Yes, I do recommend to use UML.
> You first need to upgrade to UML 2.2 metamodel and then recreate
> dynamically your diagram from this UML superstructure. You can see an
> example at :
> http://www.forum-omondo.com/documentation_eclipseuml_2008/ec lipseuml2008_dynamic_navigation.html
>
>
> Topcased if based on GMF and not on the UML metamodel
Vlad, that is not true !
The UML Editor shipped as part of Topcased is based on the UML metamodel
(this is the *.uml file, corresponding to the semantic model), but also
on a custom Diagram Interchange metamodel (this is the *.umldi file,
corresponding to the graphical model).
> therefore it is
> impossible to recreate views from your existing model even if you
> upgrade it.
Thus it is completely possible to recreate your diagrams from the
semantic model only. This is indeed a statement that Dusan made in a
previous message on this thread ("Using TOPCASED it is possible to
create UML class diagram from existing UML model."). However there is
indeed some limitations, particularly on Sequence diagrams, where
diagrams can not be recreated automatically.

Regards,
Jacques
You can still try the model to model transformation but to
> get a compatible GMF project from that, I doubt of it.
> There is today a little split in the Eclipse modeling community between
> modeling approaches and the use or not of GMF or EMF transformation
> stage. I mean what is the best modeling approach and why do we model ?
> Is-it important to spend time on the glue of GEF & EMF mapping or on
> Ecore using EMF serialization for UML purposes ?
> We have selected the second approach and I am persuaded that sooner or
> later the market will adopt it. The best model to model transformation
> is no transformation at all :-)
>
> Vlad Varnica
> Omondo
>
>
>
Re: Create ECORE for UML diagram [message #624841 is a reply to message #486132] Thu, 17 September 2009 08:42 Go to previous message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Jacques,

No this is not possible because for each diagram you get a model or you
can use GMF model for project level then try to create xmi from it. The
problem is that this GMF top XMI mapping doesn't work !! It means that you
get nothing really usable at XMI level !!

I also really don't see where is the metamodel with Topcased, you
certainly mean either model at diagram level or GMF model but certainly
not metamodel.
Would you like I give more explanation on this model, metamodel
tranformation stages it seems that there is some confusion here ?

Vlad,
Omondo
Re: Create ECORE for UML diagram [message #624842 is a reply to message #486307] Thu, 17 September 2009 09:17 Go to previous message
Dusan Savic is currently offline Dusan Savic
Messages: 62
Registered: July 2009
Member
Dear Vlad & Jacques,
I think that Jacques thinks that it is possible to create (initialize)
UML diagrams for example state machine diagram if you have uml model for that diagram.

It is work if I create uml diagram for example using Eclipse UML tools.
That model I copy to next project and initialize UML diagrams propertly.

On the other hand if I create uml diagram using Topcased and initialize it
with eclipse uml tools it doesnt work (because .uml model from 2 tools isn't the same).

This is expected but I think that it is possible to create transformation for this two type of uml model.

What are you think about this?

Best regards
D.S.
Re: Create ECORE for UML diagram [message #624843 is a reply to message #486317] Thu, 17 September 2009 11:44 Go to previous message
Vlad Varnica is currently offline Vlad Varnica
Messages: 546
Registered: July 2009
Location: Milton Keynes - UK
Senior Member
Dusan,

All Eclipse tools are using the same EclipseUML2 metamodel therefore the
past and copy should be possible but it is not working !!
Why .... I will let them reply even if I know the answer :-)

As I have said previously the "BEST TRANSFORMATION IS NO TRANSFORMATION AT
ALL" !!

Vlad
OMONDO
Previous Topic:Create UML diagrams programatically
Next Topic:Re: ActionExecutionSpecification no supported?
Goto Forum:
  


Current Time: Sat Sep 20 22:05:24 GMT 2014

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

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