Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EWL setting a profile/stereotype and trigger the wizard
EWL setting a profile/stereotype and trigger the wizard [message #15724] Tue, 21 April 2009 08:49 Go to next message
Eclipse UserFriend
Originally posted by: friebenj.mail.upb.de

Hello,

I have two (beginner) questions regarding EWL and its possibilities.

First I would like to create a wizard to apply a profile to a package of
a selected class (if not already applied). Afterwards a stereotype of
this profile should be attached to the selected class and a new property
should be set.

The epsilon book contains an example for attaching a stereotype, but I
can not find a way to set the profile first and to assign change/set
properties later.

Second - exists the possibility to execute an EWL wizard not only from
the wizards popup menu, but also from self coded menu actions or other
events?

Any help welcome!

Thanks,
Jens Frieben
Re: EWL setting a profile/stereotype and trigger the wizard [message #15741 is a reply to message #15724] Tue, 21 April 2009 09:09 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jens,

Jens Frieben wrote:
> Hello,
>
> I have two (beginner) questions regarding EWL and its possibilities.
>
> First I would like to create a wizard to apply a profile to a package of
> a selected class (if not already applied). Afterwards a stereotype of
> this profile should be attached to the selected class and a new property
> should be set.
>
> The epsilon book contains an example for attaching a stereotype, but I
> can not find a way to set the profile first and to assign change/set
> properties later.
>

Please have a look at
http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
for an example of applying a UML profile programmatically with Epsilon.
In this example, the profile is known and loaded in the form of an
additional model (Profile). In the case of EWL, only one model is
available by default (the one currently edited) so we'll need to load
and put the profile model in the context using a Tool (see
http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.

If this all sounds terribly complicated, please post an enhancement
request in the bugzilla and I'll try to come up with an working example
as soon as possible.

> Second - exists the possibility to execute an EWL wizard not only from
> the wizards popup menu, but also from self coded menu actions or other
> events?

Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a good
example of doing so.
>
> Any help welcome!
>
> Thanks,
> Jens Frieben

Cheers,
Dimitris
Re: EWL setting a profile/stereotype and trigger the wizard [message #16209 is a reply to message #15741] Wed, 22 April 2009 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friebenj.mail.upb.de

Thanks for you quick reply.
I am currently trying to get such a 'Tool' to work for loading the new
profile. I will of course post a successful implementation here.



Dimitris Kolovos schrieb:
> Hi Jens,
>
> Jens Frieben wrote:
>> Hello,
>>
>> I have two (beginner) questions regarding EWL and its possibilities.
>>
>> First I would like to create a wizard to apply a profile to a package
>> of a selected class (if not already applied). Afterwards a stereotype
>> of this profile should be attached to the selected class and a new
>> property should be set.
>>
>> The epsilon book contains an example for attaching a stereotype, but I
>> can not find a way to set the profile first and to assign change/set
>> properties later.
>>
>
> Please have a look at
> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
> for an example of applying a UML profile programmatically with Epsilon.
> In this example, the profile is known and loaded in the form of an
> additional model (Profile). In the case of EWL, only one model is
> available by default (the one currently edited) so we'll need to load
> and put the profile model in the context using a Tool (see
> http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.
>
> If this all sounds terribly complicated, please post an enhancement
> request in the bugzilla and I'll try to come up with an working example
> as soon as possible.
>
>> Second - exists the possibility to execute an EWL wizard not only from
>> the wizards popup menu, but also from self coded menu actions or other
>> events?
>
> Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a good
> example of doing so.
>>
>> Any help welcome!
>>
>> Thanks,
>> Jens Frieben
>
> Cheers,
> Dimitris
Re: EWL setting a profile/stereotype and trigger the wizard [message #16276 is a reply to message #16209] Fri, 24 April 2009 12:35 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Jens. Looking forward to hearing more on this.

Cheers,
Dimitris

Jens Frieben wrote:
> Thanks for you quick reply.
> I am currently trying to get such a 'Tool' to work for loading the new
> profile. I will of course post a successful implementation here.
>
>
>
> Dimitris Kolovos schrieb:
>> Hi Jens,
>>
>> Jens Frieben wrote:
>>> Hello,
>>>
>>> I have two (beginner) questions regarding EWL and its possibilities.
>>>
>>> First I would like to create a wizard to apply a profile to a package
>>> of a selected class (if not already applied). Afterwards a stereotype
>>> of this profile should be attached to the selected class and a new
>>> property should be set.
>>>
>>> The epsilon book contains an example for attaching a stereotype, but
>>> I can not find a way to set the profile first and to assign
>>> change/set properties later.
>>>
>>
>> Please have a look at
>> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
>> for an example of applying a UML profile programmatically with
>> Epsilon. In this example, the profile is known and loaded in the form
>> of an additional model (Profile). In the case of EWL, only one model
>> is available by default (the one currently edited) so we'll need to
>> load and put the profile model in the context using a Tool (see
>> http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.
>>
>> If this all sounds terribly complicated, please post an enhancement
>> request in the bugzilla and I'll try to come up with an working
>> example as soon as possible.
>>
>>> Second - exists the possibility to execute an EWL wizard not only
>>> from the wizards popup menu, but also from self coded menu actions or
>>> other events?
>>
>> Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a
>> good example of doing so.
>>>
>>> Any help welcome!
>>>
>>> Thanks,
>>> Jens Frieben
>>
>> Cheers,
>> Dimitris
Re: EWL setting a profile/stereotype and trigger the wizard [message #566868 is a reply to message #15724] Tue, 21 April 2009 09:09 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Jens,

Jens Frieben wrote:
> Hello,
>
> I have two (beginner) questions regarding EWL and its possibilities.
>
> First I would like to create a wizard to apply a profile to a package of
> a selected class (if not already applied). Afterwards a stereotype of
> this profile should be attached to the selected class and a new property
> should be set.
>
> The epsilon book contains an example for attaching a stereotype, but I
> can not find a way to set the profile first and to assign change/set
> properties later.
>

Please have a look at
http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
for an example of applying a UML profile programmatically with Epsilon.
In this example, the profile is known and loaded in the form of an
additional model (Profile). In the case of EWL, only one model is
available by default (the one currently edited) so we'll need to load
and put the profile model in the context using a Tool (see
http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.

If this all sounds terribly complicated, please post an enhancement
request in the bugzilla and I'll try to come up with an working example
as soon as possible.

> Second - exists the possibility to execute an EWL wizard not only from
> the wizards popup menu, but also from self coded menu actions or other
> events?

Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a good
example of doing so.
>
> Any help welcome!
>
> Thanks,
> Jens Frieben

Cheers,
Dimitris
Re: EWL setting a profile/stereotype and trigger the wizard [message #567013 is a reply to message #15741] Wed, 22 April 2009 10:50 Go to previous message
Eclipse UserFriend
Originally posted by: friebenj.mail.upb.de

Thanks for you quick reply.
I am currently trying to get such a 'Tool' to work for loading the new
profile. I will of course post a successful implementation here.



Dimitris Kolovos schrieb:
> Hi Jens,
>
> Jens Frieben wrote:
>> Hello,
>>
>> I have two (beginner) questions regarding EWL and its possibilities.
>>
>> First I would like to create a wizard to apply a profile to a package
>> of a selected class (if not already applied). Afterwards a stereotype
>> of this profile should be attached to the selected class and a new
>> property should be set.
>>
>> The epsilon book contains an example for attaching a stereotype, but I
>> can not find a way to set the profile first and to assign change/set
>> properties later.
>>
>
> Please have a look at
> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
> for an example of applying a UML profile programmatically with Epsilon.
> In this example, the profile is known and loaded in the form of an
> additional model (Profile). In the case of EWL, only one model is
> available by default (the one currently edited) so we'll need to load
> and put the profile model in the context using a Tool (see
> http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.
>
> If this all sounds terribly complicated, please post an enhancement
> request in the bugzilla and I'll try to come up with an working example
> as soon as possible.
>
>> Second - exists the possibility to execute an EWL wizard not only from
>> the wizards popup menu, but also from self coded menu actions or other
>> events?
>
> Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a good
> example of doing so.
>>
>> Any help welcome!
>>
>> Thanks,
>> Jens Frieben
>
> Cheers,
> Dimitris
Re: EWL setting a profile/stereotype and trigger the wizard [message #567096 is a reply to message #16209] Fri, 24 April 2009 12:35 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Thanks Jens. Looking forward to hearing more on this.

Cheers,
Dimitris

Jens Frieben wrote:
> Thanks for you quick reply.
> I am currently trying to get such a 'Tool' to work for loading the new
> profile. I will of course post a successful implementation here.
>
>
>
> Dimitris Kolovos schrieb:
>> Hi Jens,
>>
>> Jens Frieben wrote:
>>> Hello,
>>>
>>> I have two (beginner) questions regarding EWL and its possibilities.
>>>
>>> First I would like to create a wizard to apply a profile to a package
>>> of a selected class (if not already applied). Afterwards a stereotype
>>> of this profile should be attached to the selected class and a new
>>> property should be set.
>>>
>>> The epsilon book contains an example for attaching a stereotype, but
>>> I can not find a way to set the profile first and to assign
>>> change/set properties later.
>>>
>>
>> Please have a look at
>> http://dev.eclipse.org/mhonarc/newsLists/news.eclipse.epsilo n/msg00111.html
>> for an example of applying a UML profile programmatically with
>> Epsilon. In this example, the profile is known and loaded in the form
>> of an additional model (Profile). In the case of EWL, only one model
>> is available by default (the one currently edited) so we'll need to
>> load and put the profile model in the context using a Tool (see
>> http://www.eclipse.org/gmt/epsilon/doc/EpsilonTools.pdf) at runtime.
>>
>> If this all sounds terribly complicated, please post an enhancement
>> request in the bugzilla and I'll try to come up with an working
>> example as soon as possible.
>>
>>> Second - exists the possibility to execute an EWL wizard not only
>>> from the wizards popup menu, but also from self coded menu actions or
>>> other events?
>>
>> Sure. The org.eclipse.epsilon.ewl.emf plugin in the SVN provides a
>> good example of doing so.
>>>
>>> Any help welcome!
>>>
>>> Thanks,
>>> Jens Frieben
>>
>> Cheers,
>> Dimitris
Previous Topic:TemplateFactory.load help
Next Topic:HUTN generated no model
Goto Forum:
  


Current Time: Fri Mar 29 05:23:52 GMT 2024

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

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

Back to the top