Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » static profile definition?
static profile definition? [message #478606] Wed, 15 July 2009 08:03 Go to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

Recently I began to play around with operational QVT and did my first
steps. Well - in short words - I have a profile and a model applying it
and want to do some transformations. In those transformations I want to
apply a stereotype. In the m2m-newsgroup Sergey gave me the link [2]
where he writes about static profile definition. How I understand this
static profile definition means to make your profile available in the
workspace. So one doesn't need to load resource when wanting to apply
the profile. Is it right? So by [2] I reached [1] where James wrote
under 2.2 "Choose process all and generate code...". As I don't need an
editor for my profile I thought that he means "generating the model
code". Is this assumption right? Well, I generated the model code but
got some compiling errors (exactly 4501). I generated the code because I
wanted to add the extension point
org.eclipse.uml2.uml.generated_package. There comes the next question.
In this extension point you can add a profile and there you have to
specify a uri and location. What do I put in that location? James wrote
to "select a path". But what path? I can't imagine that I have to put
the path of my uml-file defining my profile in there?
I hope you udnerstand me and can help me a little bit because I'm new on
that terrain. Maybe there is a detailed document describing how to
create a static profile definition? All information is welcome.

best regards,
Gilbert


[1] http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg00817.html
[2] http://www.eclipse.org/newsportal/article.php?id=4213&gr oup=eclipse.modeling.m2m#4213
Re: static profile definition? [message #478607 is a reply to message #478606] Wed, 15 July 2009 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

one information to add:
I applied the EPackage stereotype to the toplevel-element in my profile,
as James wrote, which is the element "Profile" in my case. Or should I
put the profile into a package first?
Re: static profile definition? [message #478619 is a reply to message #478606] Tue, 21 July 2009 15:21 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Gilbert,
Some responses below ...


"Gilbert Mirenque" <formatzeh@gmx.de> wrote in message
news:h3k2gq$ruf$1@build.eclipse.org...
> Recently I began to play around with operational QVT and did my first
> steps. Well - in short words - I have a profile and a model applying it
> and want to do some transformations. In those transformations I want to
> apply a stereotype. In the m2m-newsgroup Sergey gave me the link [2]
> where he writes about static profile definition. How I understand this
> static profile definition means to make your profile available in the
> workspace. So one doesn't need to load resource when wanting to apply
> the profile. Is it right?
You would still need to load the resource when applying the profile and
stereotypes
since the information about the profile/stereotype needs to be exposed to
the user model.



> So by [2] I reached [1] where James wrote
[1] is a very old posting.
See lightweight extension here:
http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML_fi les/frame.html

or
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2_files/frame.htm

> under 2.2 "Choose process all and generate code...". As I don't need an
> editor for my profile I thought that he means "generating the model
> code". Is this assumption right?

Yes, you don't need an editor.

>Well, I generated the model code but
> got some compiling errors (exactly 4501). I generated the code because I
> wanted to add the extension point
> org.eclipse.uml2.uml.generated_package. There comes the next question.
> In this extension point you can add a profile and there you have to
> specify a uri and location. What do I put in that location?
> James wrote
> to "select a path". But what path? I can't imagine that I have to put
> the path of my uml-file defining my profile in there?

You can specify a pathmap and use a URI mapper to map to a real physical
location etc.

> I hope you udnerstand me and can help me a little bit because I'm new on
> that terrain. Maybe there is a detailed document describing how to
> create a static profile definition? All information is welcome.
>
> best regards,
> Gilbert
>
>
> [1] http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg00817.html
> [2] http://www.eclipse.org/newsportal/article.php?id=4213&gr oup=eclipse.modeling.m2m#4213
Re: static profile definition? [message #478620 is a reply to message #478607] Tue, 21 July 2009 15:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
You would need to apply it to the profile root, not to a package within the
profile.
Cheers,
- James.

"Gilbert Mirenque" <formatzeh@gmx.de> wrote in message
news:h3k2tk$t03$2@build.eclipse.org...
> one information to add:
> I applied the EPackage stereotype to the toplevel-element in my profile,
> as James wrote, which is the element "Profile" in my case. Or should I
> put the profile into a package first?
Re: static profile definition? [message #627787 is a reply to message #478606] Wed, 15 July 2009 08:10 Go to previous message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

one information to add:
I applied the EPackage stereotype to the toplevel-element in my profile,
as James wrote, which is the element "Profile" in my case. Or should I
put the profile into a package first?
Re: static profile definition? [message #627798 is a reply to message #478606] Tue, 21 July 2009 15:21 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Gilbert,
Some responses below ...


"Gilbert Mirenque" <formatzeh@gmx.de> wrote in message
news:h3k2gq$ruf$1@build.eclipse.org...
> Recently I began to play around with operational QVT and did my first
> steps. Well - in short words - I have a profile and a model applying it
> and want to do some transformations. In those transformations I want to
> apply a stereotype. In the m2m-newsgroup Sergey gave me the link [2]
> where he writes about static profile definition. How I understand this
> static profile definition means to make your profile available in the
> workspace. So one doesn't need to load resource when wanting to apply
> the profile. Is it right?
You would still need to load the resource when applying the profile and
stereotypes
since the information about the profile/stereotype needs to be exposed to
the user model.



> So by [2] I reached [1] where James wrote
[1] is a very old posting.
See lightweight extension here:
http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML_fi les/frame.html

or
http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2_files/frame.htm

> under 2.2 "Choose process all and generate code...". As I don't need an
> editor for my profile I thought that he means "generating the model
> code". Is this assumption right?

Yes, you don't need an editor.

>Well, I generated the model code but
> got some compiling errors (exactly 4501). I generated the code because I
> wanted to add the extension point
> org.eclipse.uml2.uml.generated_package. There comes the next question.
> In this extension point you can add a profile and there you have to
> specify a uri and location. What do I put in that location?
> James wrote
> to "select a path". But what path? I can't imagine that I have to put
> the path of my uml-file defining my profile in there?

You can specify a pathmap and use a URI mapper to map to a real physical
location etc.

> I hope you udnerstand me and can help me a little bit because I'm new on
> that terrain. Maybe there is a detailed document describing how to
> create a static profile definition? All information is welcome.
>
> best regards,
> Gilbert
>
>
> [1] http://dev.eclipse.org/newslists/news.eclipse.modeling.mdt.u ml2/msg00817.html
> [2] http://www.eclipse.org/newsportal/article.php?id=4213&gr oup=eclipse.modeling.m2m#4213
Re: static profile definition? [message #627799 is a reply to message #478607] Tue, 21 July 2009 15:22 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
You would need to apply it to the profile root, not to a package within the
profile.
Cheers,
- James.

"Gilbert Mirenque" <formatzeh@gmx.de> wrote in message
news:h3k2tk$t03$2@build.eclipse.org...
> one information to add:
> I applied the EPackage stereotype to the toplevel-element in my profile,
> as James wrote, which is the element "Profile" in my case. Or should I
> put the profile into a package first?
Previous Topic:UML2 editor exception on stereotype application
Next Topic:How to modify UML relationships?
Goto Forum:
  


Current Time: Fri Apr 19 04:37:38 GMT 2024

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

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

Back to the top