|
Re: Listen for profile application during import of RSA models [message #1697181 is a reply to message #1697176] |
Tue, 02 June 2015 08:08 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi Patrik,
This is most likely because the Model Import tool does a lot of non-standard stuff, partly for performances, partly for convenience.
Especially, the profile/stereotype part is really ad-hoc and generally relies on QVTo/Ecore operations rather than UML ones, so the events might differ.
The transformation doesn't happen in a Papyrus ModelSet with a Papyrus ServicesRegistry. It uses a much lighter mechanism (Standard resource set, no services), so most Papyrus services don't even exist. I'm not sure whether the stereotype listener needs anything specific from Papyrus, or if it is designed to work with any resource set and UML model. Anyway, it might be dangerous to interact with the model import, because all transactions, read-only check, lazy resource loading... have been disabled to improve performances, which means that the whole operation can be very fragile when modified.
Camille
Camille Letavernier
|
|
|
|
|
Re: Listen for profile application during import of RSA models [message #1697207 is a reply to message #1697181] |
Tue, 02 June 2015 12:56 |
|
Indeed, the stereotype listener is a Papyrus Service, so the
notifications that it injects into the model won't be available during
the import transformation.
Cheers,
Christian
On 2015-06-02 08:08:34 +0000, Camille Letavernier said:
> Hi Patrik,
>
> This is most likely because the Model Import tool does a lot of
> non-standard stuff, partly for performances, partly for convenience.
>
> Especially, the profile/stereotype part is really ad-hoc and generally
> relies on QVTo/Ecore operations rather than UML ones, so the events
> might differ.
>
> The transformation doesn't happen in a Papyrus ModelSet with a Papyrus
> ServicesRegistry. It uses a much lighter mechanism (Standard resource
> set, no services), so most Papyrus services don't even exist. I'm not
> sure whether the stereotype listener needs anything specific from
> Papyrus, or if it is designed to work with any resource set and UML
> model. Anyway, it might be dangerous to interact with the model import,
> because all transactions, read-only check, lazy resource loading...
> have been disabled to improve performances, which means that the whole
> operation can be very fragile when modified.
>
> Camille
|
|
|
|
Powered by
FUDForum. Page generated in 0.01673 seconds