Listen for (re)application of a profile [message #1696313] |
Mon, 25 May 2015 10:00  |
Eclipse User |
|
|
|
Is there a way to listen for (re)application of a profile on a model?
I'd like to run some code when a profile is applied or updated.
/Patrik
[Updated on: Mon, 25 May 2015 10:00] by Moderator
|
|
|
|
|
Re: Listen for (re)application of a profile [message #1696326 is a reply to message #1696325] |
Mon, 25 May 2015 13:11   |
Eclipse User |
|
|
|
I should clarify: the Papyrus editor uses this listener internally to
dispatch ProfileApplicationNotifications on Packages. You don't
interact with the ProfileApplicationListener, as such, but just receive
the notifications in the usual way, via Adapter or ResourceSetListener.
cW
On 2015-05-25 17:08:18 +0000, Christian W. Damus said:
> Hi, Patrik,
>
> If you're working in Papyrus, have a look at the
> org.eclipse.papyrus.uml.tools.listeners.ProfileApplicationListener
> class and search references to it for examples of how it's used. This
> provides a custom notification, sent by a Package, when profiles are
> applied or unapplied. Most significantly, it accounts for "external"
> profile applications that actually don't modify the package at all in
> real EMF terms when they are created and destroyed.
>
> HTH,
>
> Christian
>
> On 2015-05-25 14:00:24 +0000, Patrik Nandorf said:
>
>> Is there a way to listen for (re)application of a profile on a model?
>>
>> I'd like to run some code when a profile is applied or updated.
>>
>> /Patrik
|
|
|
|
Powered by
FUDForum. Page generated in 0.05002 seconds