Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » API for manipulating UML Profiled
API for manipulating UML Profiled [message #478068] Tue, 16 December 2008 17:07 Go to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi
i'm going, for my work, to work on uml profile.
And i notice that it's not very fun to always doing
myElement.getValue('stereotype'...)

i wanted to know if it exists a plugin which transform a profile to an
API permitting to manipulate them as model instantiation

if it doesn't exist i post here what i imagine and tell me what do you
think about

- a user defines a profile
- Profile p
- Stereotype s based on Class
- property p1 : String
- Stereotype s2 based on Association

- it triggers an action generating an eclipse plugin

- the api could be like this

+ package profile /* or name providing by user */
+ Class S extends Class
Attribute Class classConcerneed
Constructor S (Class c)
Method getP1 () returns String
// All the methods overriden of class are delegated to classConcerned
or a method getConcernedClass and no inheritance to Class, i like the
solution with delegation it could permit to manipulate the object as a
class
+ Class S2 extends Association
Attribute Association associationConcerned
Constructor S2 (Association a)
...

- the user uses the api
Class myClass ; ....
if (myClass.isStereotypeApplied(...)) {
S myClassStereotyped = new S (myClass) ;
...
}




Re: API for manipulating UML Profiled [message #478070 is a reply to message #478068] Tue, 16 December 2008 20:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

Try generating your profile as a static EMF model:

http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml

HTH,

Christian


Tristan FAURE wrote:
> Hi
> i'm going, for my work, to work on uml profile.
> And i notice that it's not very fun to always doing
> myElement.getValue('stereotype'...)
>
> i wanted to know if it exists a plugin which transform a profile to an
> API permitting to manipulate them as model instantiation
>
> if it doesn't exist i post here what i imagine and tell me what do you
> think about
>
> - a user defines a profile
> - Profile p
> - Stereotype s based on Class
> - property p1 : String
> - Stereotype s2 based on Association
>
> - it triggers an action generating an eclipse plugin
>
> - the api could be like this
>
> + package profile /* or name providing by user */
> + Class S extends Class
> Attribute Class classConcerneed
> Constructor S (Class c)
> Method getP1 () returns String
> // All the methods overriden of class are delegated to
> classConcerned or a method getConcernedClass and no inheritance to
> Class, i like the solution with delegation it could permit to
> manipulate the object as a class
> + Class S2 extends Association
> Attribute Association associationConcerned
> Constructor S2 (Association a)
> ...
>
> - the user uses the api
> Class myClass ; ....
> if (myClass.isStereotypeApplied(...)) {
> S myClassStereotyped = new S (myClass) ;
> ...
> }
Re: API for manipulating UML Profiled [message #478079 is a reply to message #478070] Wed, 17 December 2008 08:12 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi Christian !
thank's for the link i've seen this good powerpoint !
but in slide 15 the slide mentions
"Generate Java™ API for the profile"
How can i do that ?

Christian W. Damus a écrit :
> Hi, Tristan,
>
> Try generating your profile as a static EMF model:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>
>
> HTH,
>
> Christian
>
>
> Tristan FAURE wrote:
>> Hi
>> i'm going, for my work, to work on uml profile.
>> And i notice that it's not very fun to always doing
>> myElement.getValue('stereotype'...)
>>
>> i wanted to know if it exists a plugin which transform a profile to an
>> API permitting to manipulate them as model instantiation
>>
>> if it doesn't exist i post here what i imagine and tell me what do you
>> think about
>>
>> - a user defines a profile
>> - Profile p
>> - Stereotype s based on Class
>> - property p1 : String
>> - Stereotype s2 based on Association
>> - it triggers an action generating an eclipse plugin
>>
>> - the api could be like this
>>
>> + package profile /* or name providing by user */
>> + Class S extends Class
>> Attribute Class classConcerneed
>> Constructor S (Class c)
>> Method getP1 () returns String
>> // All the methods overriden of class are delegated to
>> classConcerned or a method getConcernedClass and no inheritance to
>> Class, i like the solution with delegation it could permit to
>> manipulate the object as a class
>> + Class S2 extends Association
>> Attribute Association associationConcerned
>> Constructor S2 (Association a)
>> ...
>>
>> - the user uses the api
>> Class myClass ; ....
>> if (myClass.isStereotypeApplied(...)) {
>> S myClassStereotyped = new S (myClass) ;
>> ...
>> }




Re: API for manipulating UML Profiled [message #478080 is a reply to message #478079] Wed, 17 December 2008 13:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

It's just like generating any other package to code, except with a few
more steps for extension registration.

See more details, here:

http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html

Cheers,

Christian


Tristan FAURE wrote:
> Hi Christian !
> thank's for the link i've seen this good powerpoint !
> but in slide 15 the slide mentions
> "Generate Java™ API for the profile"
> How can i do that ?
>
> Christian W. Damus a écrit :
>> Hi, Tristan,
>>
>> Try generating your profile as a static EMF model:
>>
>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>
>>
>> HTH,
>>
>> Christian
>>
>>
>> Tristan FAURE wrote:
>>> Hi
>>> i'm going, for my work, to work on uml profile.
>>> And i notice that it's not very fun to always doing
>>> myElement.getValue('stereotype'...)
>>>
>>> i wanted to know if it exists a plugin which transform a profile to
>>> an API permitting to manipulate them as model instantiation
>>>
>>> if it doesn't exist i post here what i imagine and tell me what do
>>> you think about
>>>
>>> - a user defines a profile
>>> - Profile p
>>> - Stereotype s based on Class
>>> - property p1 : String
>>> - Stereotype s2 based on Association
>>> - it triggers an action generating an eclipse plugin
>>>
>>> - the api could be like this
>>>
>>> + package profile /* or name providing by user */
>>> + Class S extends Class
>>> Attribute Class classConcerneed
>>> Constructor S (Class c)
>>> Method getP1 () returns String
>>> // All the methods overriden of class are delegated to
>>> classConcerned or a method getConcernedClass and no inheritance to
>>> Class, i like the solution with delegation it could permit to
>>> manipulate the object as a class
>>> + Class S2 extends Association
>>> Attribute Association associationConcerned
>>> Constructor S2 (Association a)
>>> ...
>>>
>>> - the user uses the api
>>> Class myClass ; ....
>>> if (myClass.isStereotypeApplied(...)) {
>>> S myClassStereotyped = new S (myClass) ;
>>> ...
>>> }
Re: API for manipulating UML Profiled [message #478081 is a reply to message #478080] Thu, 18 December 2008 08:16 Go to previous messageGo to next message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi again
i couldn't access to this web page with firefox (big layouts problems)
and i have an old IE (in my company) where i just see ASCII characters
do you know if i can find pdf (or other format) version of this page ?

Christian W. Damus a écrit :
> Hi, Tristan,
>
> It's just like generating any other package to code, except with a few
> more steps for extension registration.
>
> See more details, here:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>
>
> Cheers,
>
> Christian
>
>
> Tristan FAURE wrote:
>> Hi Christian !
>> thank's for the link i've seen this good powerpoint !
>> but in slide 15 the slide mentions
>> "Generate Java™ API for the profile"
>> How can i do that ?
>>
>> Christian W. Damus a écrit :
>>> Hi, Tristan,
>>>
>>> Try generating your profile as a static EMF model:
>>>
>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>
>>>
>>> HTH,
>>>
>>> Christian
>>>
>>>
>>> Tristan FAURE wrote:
>>>> Hi
>>>> i'm going, for my work, to work on uml profile.
>>>> And i notice that it's not very fun to always doing
>>>> myElement.getValue('stereotype'...)
>>>>
>>>> i wanted to know if it exists a plugin which transform a profile to
>>>> an API permitting to manipulate them as model instantiation
>>>>
>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>> you think about
>>>>
>>>> - a user defines a profile
>>>> - Profile p
>>>> - Stereotype s based on Class
>>>> - property p1 : String
>>>> - Stereotype s2 based on Association
>>>> - it triggers an action generating an eclipse plugin
>>>>
>>>> - the api could be like this
>>>>
>>>> + package profile /* or name providing by user */
>>>> + Class S extends Class
>>>> Attribute Class classConcerneed
>>>> Constructor S (Class c)
>>>> Method getP1 () returns String
>>>> // All the methods overriden of class are delegated to
>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>> Class, i like the solution with delegation it could permit to
>>>> manipulate the object as a class
>>>> + Class S2 extends Association
>>>> Attribute Association associationConcerned
>>>> Constructor S2 (Association a)
>>>> ...
>>>>
>>>> - the user uses the api
>>>> Class myClass ; ....
>>>> if (myClass.isStereotypeApplied(...)) {
>>>> S myClassStereotyped = new S (myClass) ;
>>>> ...
>>>> }




Re: API for manipulating UML Profiled [message #478086 is a reply to message #478081] Sun, 21 December 2008 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

There is a PDF of the slides attached, here:

http://www.eclipsecon.org/2008/?page=sub/&id=172

cW

Tristan FAURE wrote:
> Hi again
> i couldn't access to this web page with firefox (big layouts problems)
> and i have an old IE (in my company) where i just see ASCII characters
> do you know if i can find pdf (or other format) version of this page ?
>
> Christian W. Damus a écrit :
>> Hi, Tristan,
>>
>> It's just like generating any other package to code, except with a few
>> more steps for extension registration.
>>
>> See more details, here:
>>
>> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>>
>>
>> Cheers,
>>
>> Christian
>>
>>
>> Tristan FAURE wrote:
>>> Hi Christian !
>>> thank's for the link i've seen this good powerpoint !
>>> but in slide 15 the slide mentions
>>> "Generate Java™ API for the profile"
>>> How can i do that ?
>>>
>>> Christian W. Damus a écrit :
>>>> Hi, Tristan,
>>>>
>>>> Try generating your profile as a static EMF model:
>>>>
>>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>>
>>>>
>>>> HTH,
>>>>
>>>> Christian
>>>>
>>>>
>>>> Tristan FAURE wrote:
>>>>> Hi
>>>>> i'm going, for my work, to work on uml profile.
>>>>> And i notice that it's not very fun to always doing
>>>>> myElement.getValue('stereotype'...)
>>>>>
>>>>> i wanted to know if it exists a plugin which transform a profile to
>>>>> an API permitting to manipulate them as model instantiation
>>>>>
>>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>>> you think about
>>>>>
>>>>> - a user defines a profile
>>>>> - Profile p
>>>>> - Stereotype s based on Class
>>>>> - property p1 : String
>>>>> - Stereotype s2 based on Association
>>>>> - it triggers an action generating an eclipse plugin
>>>>>
>>>>> - the api could be like this
>>>>>
>>>>> + package profile /* or name providing by user */
>>>>> + Class S extends Class
>>>>> Attribute Class classConcerneed
>>>>> Constructor S (Class c)
>>>>> Method getP1 () returns String
>>>>> // All the methods overriden of class are delegated to
>>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>>> Class, i like the solution with delegation it could permit to
>>>>> manipulate the object as a class
>>>>> + Class S2 extends Association
>>>>> Attribute Association associationConcerned
>>>>> Constructor S2 (Association a)
>>>>> ...
>>>>>
>>>>> - the user uses the api
>>>>> Class myClass ; ....
>>>>> if (myClass.isStereotypeApplied(...)) {
>>>>> S myClassStereotyped = new S (myClass) ;
>>>>> ...
>>>>> }
Re: API for manipulating UML Profiled [message #478171 is a reply to message #478086] Fri, 06 February 2009 14:29 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
thank's !

Christian W. Damus a écrit :
> Hi, Tristan,
>
> There is a PDF of the slides attached, here:
>
> http://www.eclipsecon.org/2008/?page=sub/&id=172
>
> cW
>
> Tristan FAURE wrote:
>> Hi again
>> i couldn't access to this web page with firefox (big layouts problems)
>> and i have an old IE (in my company) where i just see ASCII characters
>> do you know if i can find pdf (or other format) version of this page ?
>>
>> Christian W. Damus a écrit :
>>> Hi, Tristan,
>>>
>>> It's just like generating any other package to code, except with a
>>> few more steps for extension registration.
>>>
>>> See more details, here:
>>>
>>> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>>>
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>>
>>> Tristan FAURE wrote:
>>>> Hi Christian !
>>>> thank's for the link i've seen this good powerpoint !
>>>> but in slide 15 the slide mentions
>>>> "Generate Java™ API for the profile"
>>>> How can i do that ?
>>>>
>>>> Christian W. Damus a écrit :
>>>>> Hi, Tristan,
>>>>>
>>>>> Try generating your profile as a static EMF model:
>>>>>
>>>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>>>
>>>>>
>>>>> HTH,
>>>>>
>>>>> Christian
>>>>>
>>>>>
>>>>> Tristan FAURE wrote:
>>>>>> Hi
>>>>>> i'm going, for my work, to work on uml profile.
>>>>>> And i notice that it's not very fun to always doing
>>>>>> myElement.getValue('stereotype'...)
>>>>>>
>>>>>> i wanted to know if it exists a plugin which transform a profile
>>>>>> to an API permitting to manipulate them as model instantiation
>>>>>>
>>>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>>>> you think about
>>>>>>
>>>>>> - a user defines a profile
>>>>>> - Profile p
>>>>>> - Stereotype s based on Class
>>>>>> - property p1 : String
>>>>>> - Stereotype s2 based on Association
>>>>>> - it triggers an action generating an eclipse plugin
>>>>>>
>>>>>> - the api could be like this
>>>>>>
>>>>>> + package profile /* or name providing by user */
>>>>>> + Class S extends Class
>>>>>> Attribute Class classConcerneed
>>>>>> Constructor S (Class c)
>>>>>> Method getP1 () returns String
>>>>>> // All the methods overriden of class are delegated to
>>>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>>>> Class, i like the solution with delegation it could permit to
>>>>>> manipulate the object as a class
>>>>>> + Class S2 extends Association
>>>>>> Attribute Association associationConcerned
>>>>>> Constructor S2 (Association a)
>>>>>> ...
>>>>>>
>>>>>> - the user uses the api
>>>>>> Class myClass ; ....
>>>>>> if (myClass.isStereotypeApplied(...)) {
>>>>>> S myClassStereotyped = new S (myClass) ;
>>>>>> ...
>>>>>> }




Re: API for manipulating UML Profiled [message #627287 is a reply to message #478068] Tue, 16 December 2008 20:03 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

Try generating your profile as a static EMF model:

http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml

HTH,

Christian


Tristan FAURE wrote:
> Hi
> i'm going, for my work, to work on uml profile.
> And i notice that it's not very fun to always doing
> myElement.getValue('stereotype'...)
>
> i wanted to know if it exists a plugin which transform a profile to an
> API permitting to manipulate them as model instantiation
>
> if it doesn't exist i post here what i imagine and tell me what do you
> think about
>
> - a user defines a profile
> - Profile p
> - Stereotype s based on Class
> - property p1 : String
> - Stereotype s2 based on Association
>
> - it triggers an action generating an eclipse plugin
>
> - the api could be like this
>
> + package profile /* or name providing by user */
> + Class S extends Class
> Attribute Class classConcerneed
> Constructor S (Class c)
> Method getP1 () returns String
> // All the methods overriden of class are delegated to
> classConcerned or a method getConcernedClass and no inheritance to
> Class, i like the solution with delegation it could permit to
> manipulate the object as a class
> + Class S2 extends Association
> Attribute Association associationConcerned
> Constructor S2 (Association a)
> ...
>
> - the user uses the api
> Class myClass ; ....
> if (myClass.isStereotypeApplied(...)) {
> S myClassStereotyped = new S (myClass) ;
> ...
> }
Re: API for manipulating UML Profiled [message #627288 is a reply to message #478070] Wed, 17 December 2008 08:12 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi Christian !
thank's for the link i've seen this good powerpoint !
but in slide 15 the slide mentions
"Generate Java™ API for the profile"
How can i do that ?

Christian W. Damus a écrit :
> Hi, Tristan,
>
> Try generating your profile as a static EMF model:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>
>
> HTH,
>
> Christian
>
>
> Tristan FAURE wrote:
>> Hi
>> i'm going, for my work, to work on uml profile.
>> And i notice that it's not very fun to always doing
>> myElement.getValue('stereotype'...)
>>
>> i wanted to know if it exists a plugin which transform a profile to an
>> API permitting to manipulate them as model instantiation
>>
>> if it doesn't exist i post here what i imagine and tell me what do you
>> think about
>>
>> - a user defines a profile
>> - Profile p
>> - Stereotype s based on Class
>> - property p1 : String
>> - Stereotype s2 based on Association
>> - it triggers an action generating an eclipse plugin
>>
>> - the api could be like this
>>
>> + package profile /* or name providing by user */
>> + Class S extends Class
>> Attribute Class classConcerneed
>> Constructor S (Class c)
>> Method getP1 () returns String
>> // All the methods overriden of class are delegated to
>> classConcerned or a method getConcernedClass and no inheritance to
>> Class, i like the solution with delegation it could permit to
>> manipulate the object as a class
>> + Class S2 extends Association
>> Attribute Association associationConcerned
>> Constructor S2 (Association a)
>> ...
>>
>> - the user uses the api
>> Class myClass ; ....
>> if (myClass.isStereotypeApplied(...)) {
>> S myClassStereotyped = new S (myClass) ;
>> ...
>> }




Re: API for manipulating UML Profiled [message #627289 is a reply to message #478079] Wed, 17 December 2008 13:45 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

It's just like generating any other package to code, except with a few
more steps for extension registration.

See more details, here:

http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html

Cheers,

Christian


Tristan FAURE wrote:
> Hi Christian !
> thank's for the link i've seen this good powerpoint !
> but in slide 15 the slide mentions
> "Generate Java™ API for the profile"
> How can i do that ?
>
> Christian W. Damus a écrit :
>> Hi, Tristan,
>>
>> Try generating your profile as a static EMF model:
>>
>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>
>>
>> HTH,
>>
>> Christian
>>
>>
>> Tristan FAURE wrote:
>>> Hi
>>> i'm going, for my work, to work on uml profile.
>>> And i notice that it's not very fun to always doing
>>> myElement.getValue('stereotype'...)
>>>
>>> i wanted to know if it exists a plugin which transform a profile to
>>> an API permitting to manipulate them as model instantiation
>>>
>>> if it doesn't exist i post here what i imagine and tell me what do
>>> you think about
>>>
>>> - a user defines a profile
>>> - Profile p
>>> - Stereotype s based on Class
>>> - property p1 : String
>>> - Stereotype s2 based on Association
>>> - it triggers an action generating an eclipse plugin
>>>
>>> - the api could be like this
>>>
>>> + package profile /* or name providing by user */
>>> + Class S extends Class
>>> Attribute Class classConcerneed
>>> Constructor S (Class c)
>>> Method getP1 () returns String
>>> // All the methods overriden of class are delegated to
>>> classConcerned or a method getConcernedClass and no inheritance to
>>> Class, i like the solution with delegation it could permit to
>>> manipulate the object as a class
>>> + Class S2 extends Association
>>> Attribute Association associationConcerned
>>> Constructor S2 (Association a)
>>> ...
>>>
>>> - the user uses the api
>>> Class myClass ; ....
>>> if (myClass.isStereotypeApplied(...)) {
>>> S myClassStereotyped = new S (myClass) ;
>>> ...
>>> }
Re: API for manipulating UML Profiled [message #627290 is a reply to message #478080] Thu, 18 December 2008 08:16 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
Hi again
i couldn't access to this web page with firefox (big layouts problems)
and i have an old IE (in my company) where i just see ASCII characters
do you know if i can find pdf (or other format) version of this page ?

Christian W. Damus a écrit :
> Hi, Tristan,
>
> It's just like generating any other package to code, except with a few
> more steps for extension registration.
>
> See more details, here:
>
> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>
>
> Cheers,
>
> Christian
>
>
> Tristan FAURE wrote:
>> Hi Christian !
>> thank's for the link i've seen this good powerpoint !
>> but in slide 15 the slide mentions
>> "Generate Java™ API for the profile"
>> How can i do that ?
>>
>> Christian W. Damus a écrit :
>>> Hi, Tristan,
>>>
>>> Try generating your profile as a static EMF model:
>>>
>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>
>>>
>>> HTH,
>>>
>>> Christian
>>>
>>>
>>> Tristan FAURE wrote:
>>>> Hi
>>>> i'm going, for my work, to work on uml profile.
>>>> And i notice that it's not very fun to always doing
>>>> myElement.getValue('stereotype'...)
>>>>
>>>> i wanted to know if it exists a plugin which transform a profile to
>>>> an API permitting to manipulate them as model instantiation
>>>>
>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>> you think about
>>>>
>>>> - a user defines a profile
>>>> - Profile p
>>>> - Stereotype s based on Class
>>>> - property p1 : String
>>>> - Stereotype s2 based on Association
>>>> - it triggers an action generating an eclipse plugin
>>>>
>>>> - the api could be like this
>>>>
>>>> + package profile /* or name providing by user */
>>>> + Class S extends Class
>>>> Attribute Class classConcerneed
>>>> Constructor S (Class c)
>>>> Method getP1 () returns String
>>>> // All the methods overriden of class are delegated to
>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>> Class, i like the solution with delegation it could permit to
>>>> manipulate the object as a class
>>>> + Class S2 extends Association
>>>> Attribute Association associationConcerned
>>>> Constructor S2 (Association a)
>>>> ...
>>>>
>>>> - the user uses the api
>>>> Class myClass ; ....
>>>> if (myClass.isStereotypeApplied(...)) {
>>>> S myClassStereotyped = new S (myClass) ;
>>>> ...
>>>> }




Re: API for manipulating UML Profiled [message #627295 is a reply to message #478081] Sun, 21 December 2008 14:48 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Tristan,

There is a PDF of the slides attached, here:

http://www.eclipsecon.org/2008/?page=sub/&id=172

cW

Tristan FAURE wrote:
> Hi again
> i couldn't access to this web page with firefox (big layouts problems)
> and i have an old IE (in my company) where i just see ASCII characters
> do you know if i can find pdf (or other format) version of this page ?
>
> Christian W. Damus a écrit :
>> Hi, Tristan,
>>
>> It's just like generating any other package to code, except with a few
>> more steps for extension registration.
>>
>> See more details, here:
>>
>> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>>
>>
>> Cheers,
>>
>> Christian
>>
>>
>> Tristan FAURE wrote:
>>> Hi Christian !
>>> thank's for the link i've seen this good powerpoint !
>>> but in slide 15 the slide mentions
>>> "Generate Java™ API for the profile"
>>> How can i do that ?
>>>
>>> Christian W. Damus a écrit :
>>>> Hi, Tristan,
>>>>
>>>> Try generating your profile as a static EMF model:
>>>>
>>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>>
>>>>
>>>> HTH,
>>>>
>>>> Christian
>>>>
>>>>
>>>> Tristan FAURE wrote:
>>>>> Hi
>>>>> i'm going, for my work, to work on uml profile.
>>>>> And i notice that it's not very fun to always doing
>>>>> myElement.getValue('stereotype'...)
>>>>>
>>>>> i wanted to know if it exists a plugin which transform a profile to
>>>>> an API permitting to manipulate them as model instantiation
>>>>>
>>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>>> you think about
>>>>>
>>>>> - a user defines a profile
>>>>> - Profile p
>>>>> - Stereotype s based on Class
>>>>> - property p1 : String
>>>>> - Stereotype s2 based on Association
>>>>> - it triggers an action generating an eclipse plugin
>>>>>
>>>>> - the api could be like this
>>>>>
>>>>> + package profile /* or name providing by user */
>>>>> + Class S extends Class
>>>>> Attribute Class classConcerneed
>>>>> Constructor S (Class c)
>>>>> Method getP1 () returns String
>>>>> // All the methods overriden of class are delegated to
>>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>>> Class, i like the solution with delegation it could permit to
>>>>> manipulate the object as a class
>>>>> + Class S2 extends Association
>>>>> Attribute Association associationConcerned
>>>>> Constructor S2 (Association a)
>>>>> ...
>>>>>
>>>>> - the user uses the api
>>>>> Class myClass ; ....
>>>>> if (myClass.isStereotypeApplied(...)) {
>>>>> S myClassStereotyped = new S (myClass) ;
>>>>> ...
>>>>> }
Re: API for manipulating UML Profiled [message #627371 is a reply to message #478086] Fri, 06 February 2009 14:29 Go to previous message
Tristan Faure is currently offline Tristan FaureFriend
Messages: 460
Registered: July 2009
Senior Member
thank's !

Christian W. Damus a écrit :
> Hi, Tristan,
>
> There is a PDF of the slides attached, here:
>
> http://www.eclipsecon.org/2008/?page=sub/&id=172
>
> cW
>
> Tristan FAURE wrote:
>> Hi again
>> i couldn't access to this web page with firefox (big layouts problems)
>> and i have an old IE (in my company) where i just see ASCII characters
>> do you know if i can find pdf (or other format) version of this page ?
>>
>> Christian W. Damus a écrit :
>>> Hi, Tristan,
>>>
>>> It's just like generating any other package to code, except with a
>>> few more steps for extension registration.
>>>
>>> See more details, here:
>>>
>>> http://www.eclipse.org/modeling/mdt/uml2/docs/presentations/ EclipseCon2008_LongTalk_NewFeaturesOfUML2.html
>>>
>>>
>>> Cheers,
>>>
>>> Christian
>>>
>>>
>>> Tristan FAURE wrote:
>>>> Hi Christian !
>>>> thank's for the link i've seen this good powerpoint !
>>>> but in slide 15 the slide mentions
>>>> "Generate Java™ API for the profile"
>>>> How can i do that ?
>>>>
>>>> Christian W. Damus a écrit :
>>>>> Hi, Tristan,
>>>>>
>>>>> Try generating your profile as a static EMF model:
>>>>>
>>>>> http://www.eclipse.org/modeling/mdt/uml2/docs/tutorials/Ecli pseCon2008_Tutorial_Creating_Robust_Scalable_DSL_with_UML.ht ml
>>>>>
>>>>>
>>>>> HTH,
>>>>>
>>>>> Christian
>>>>>
>>>>>
>>>>> Tristan FAURE wrote:
>>>>>> Hi
>>>>>> i'm going, for my work, to work on uml profile.
>>>>>> And i notice that it's not very fun to always doing
>>>>>> myElement.getValue('stereotype'...)
>>>>>>
>>>>>> i wanted to know if it exists a plugin which transform a profile
>>>>>> to an API permitting to manipulate them as model instantiation
>>>>>>
>>>>>> if it doesn't exist i post here what i imagine and tell me what do
>>>>>> you think about
>>>>>>
>>>>>> - a user defines a profile
>>>>>> - Profile p
>>>>>> - Stereotype s based on Class
>>>>>> - property p1 : String
>>>>>> - Stereotype s2 based on Association
>>>>>> - it triggers an action generating an eclipse plugin
>>>>>>
>>>>>> - the api could be like this
>>>>>>
>>>>>> + package profile /* or name providing by user */
>>>>>> + Class S extends Class
>>>>>> Attribute Class classConcerneed
>>>>>> Constructor S (Class c)
>>>>>> Method getP1 () returns String
>>>>>> // All the methods overriden of class are delegated to
>>>>>> classConcerned or a method getConcernedClass and no inheritance to
>>>>>> Class, i like the solution with delegation it could permit to
>>>>>> manipulate the object as a class
>>>>>> + Class S2 extends Association
>>>>>> Attribute Association associationConcerned
>>>>>> Constructor S2 (Association a)
>>>>>> ...
>>>>>>
>>>>>> - the user uses the api
>>>>>> Class myClass ; ....
>>>>>> if (myClass.isStereotypeApplied(...)) {
>>>>>> S myClassStereotyped = new S (myClass) ;
>>>>>> ...
>>>>>> }




Previous Topic:Reusing package-element in UML Metamodel extension
Next Topic:Redefined property type in Genmodel
Goto Forum:
  


Current Time: Thu Apr 18 08:07:43 GMT 2024

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

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

Back to the top