[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: static profile definition?
|
Hi Gilbert,
Some responses below ...
"Gilbert Mirenque" <formatzeh@xxxxxx> wrote in message
news:h3k2gq$ruf$1@xxxxxxxxxxxxxxxxxxxx
> 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/EclipseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML_files/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.uml2/msg00817.html
> [2]http://www.eclipse.org/newsportal/article.php?id=4213&group=eclipse.modeling.m2m#4213