Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » uml.ecore and ecore.ecore
uml.ecore and ecore.ecore [message #478206] Mon, 23 February 2009 11:54 Go to next message
Eclipse UserFriend
Originally posted by: fadoi.lakhal.cea.fr

Hi,

I work currently with the UML Editor, I define a UML profil ("profil.uml")
using the UML MM from the plateform.
From the "profil.uml" file, I convert to a "profile.ecore" file. During the
conversion two new files appear uml.ecore and ecore.ecore.
I would like to know why these two files are generated automatically and if
my profil.ecore file depends now on these two files and not any more on the
UML MM from the plateform?

Sorry if the post subject exists (I don't think )

Thank you
Fadoi
Re: uml.ecore and ecore.ecore [message #478215 is a reply to message #478206] Fri, 27 February 2009 20:13 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Fadoi,

If you are not using static profile definition there should be no need to
explicitly create a profile.ecore, you would instead, "define" your profile
(this incidentally creates an ecore representation but keeps it inside the
profile.uml).

Have a look at:
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html

In your case, you get a uml.ecore since your profile.uml makes reference to
the UML metamodel. During the conversion of your profile.uml to ecore, all
referenced models are resolved and converted which is why you are seeing
uml.ecore. For static profile definition purposes, during the conversion
process, you should select the option to reference the existing uml.ecore
and ecore.ecore in the org.eclipse.uml2.uml\model folder instead of
regenerating it. see:
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2_files/frame.htm
and look at the static profile section.

Cheers,
-James.


"fadoi lakhal" <fadoi.lakhal@cea.fr> wrote in message
news:gnu2q8$7fn$1@build.eclipse.org...
> Hi,
>
> I work currently with the UML Editor, I define a UML profil
> ("profil.uml") using the UML MM from the plateform.
> From the "profil.uml" file, I convert to a "profile.ecore" file. During
> the conversion two new files appear uml.ecore and ecore.ecore.
> I would like to know why these two files are generated automatically and
> if my profil.ecore file depends now on these two files and not any more on
> the UML MM from the plateform?
>
> Sorry if the post subject exists (I don't think )
>
> Thank you
> Fadoi
>
Re: uml.ecore and ecore.ecore [message #627410 is a reply to message #478206] Fri, 27 February 2009 20:13 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Fadoi,

If you are not using static profile definition there should be no need to
explicitly create a profile.ecore, you would instead, "define" your profile
(this incidentally creates an ecore representation but keeps it inside the
profile.uml).

Have a look at:
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html

In your case, you get a uml.ecore since your profile.uml makes reference to
the UML metamodel. During the conversion of your profile.uml to ecore, all
referenced models are resolved and converted which is why you are seeing
uml.ecore. For static profile definition purposes, during the conversion
process, you should select the option to reference the existing uml.ecore
and ecore.ecore in the org.eclipse.uml2.uml\model folder instead of
regenerating it. see:
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2_files/frame.htm
and look at the static profile section.

Cheers,
-James.


"fadoi lakhal" <fadoi.lakhal@cea.fr> wrote in message
news:gnu2q8$7fn$1@build.eclipse.org...
> Hi,
>
> I work currently with the UML Editor, I define a UML profil
> ("profil.uml") using the UML MM from the plateform.
> From the "profil.uml" file, I convert to a "profile.ecore" file. During
> the conversion two new files appear uml.ecore and ecore.ecore.
> I would like to know why these two files are generated automatically and
> if my profil.ecore file depends now on these two files and not any more on
> the UML MM from the plateform?
>
> Sorry if the post subject exists (I don't think )
>
> Thank you
> Fadoi
>
Previous Topic:How to set & get data from a stereotype's properties
Next Topic:Re: get the value of a property of a stereotype
Goto Forum:
  


Current Time: Thu Apr 25 12:47:44 GMT 2024

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

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

Back to the top