|
|
Re: How to override the "delete" and "save" strategy [message #1696925 is a reply to message #1696891] |
Fri, 29 May 2015 12:02 |
|
Hi,
Note that the actually semantics and behaviour of element types are
described in the Graphical Modeling Framework Run-time documentation in
the on-line help. What isn't so much documented yet is the
construction of the configuration models (which exactly mimic the GMF
extension point) and how to integrate them into Papyrus.
Cheers,
Christian
On 2015-05-29 09:01:06 +0000, Camille Letavernier said:
> Hi,
>
> This is better done through the Elements Types framework, which is
> unfortunately not properly documented yet. The idea is to bind some
> specific Advices (Pre/Post actions) associated to the
> DestroyElementRequests you want to override. This can be done with the
> Element Types Configuration model in Papyrus Mars. Maybe you can find
> some relevant examples in UML-RT or SysML1.4 plug-ins (Search for
> *.elementtypesconfigurations models)
>
> Regarding the Rename action, the approach is similar: you need to bind
> some post actions (Advice) to a SetRequest affecting the
> NamedElement#name property, using the Element Types framework
>
> HTH,
> Camille
|
|
|
|
Powered by
FUDForum. Page generated in 0.02864 seconds