|Re: Papyrus customization - filter possible values for a property [message #711044 is a reply to message #711005]
||Fri, 05 August 2011 17:58
| Ed Willink
Registered: July 2009
With Papyrus supporting UML which uses OCL, and with Eclipse OCL adding
direct Java code generation, it might be interesting to allow users to
define OCL expressions to perform the requisite filtering. These could
all be encapsulated within a GUI preferences model.
On 05/08/2011 18:20, Stefano wrote:
> I would like to develop a Papyrus plug-in to apply some filters to the
> list of entities which Papyrus proposes, through dedicate pop-up
> windows or the property editor, when trying to set a value for a given
> model element property.
> For instance:
> 1) when creating a CallOperationAction Papyrus allows to choose a
> given Operation (to be invoked by the action) starting from a set of
> Operation which are available in the current model. I would like to
> implement an extension to filter this set, for instance to filter out
> all the operations that are not visible by the current activity.
> 2) in the property editor, when trying to set a value for a given
> stereotype attribute Attr of type X, currently the editor proposes all
> the entities of type X: from this set I need to filter out all the
> entities of type X that cannot be assigned to Attr, for instance
> according to constraints defined in the current profile.
> How can I provide theses filters without changing the Papyrus source
> Do you know if is it possible to use some extension points in order to
> apply these filters?
> If not, do you know if this kind of extensions are planned to be
> provided in upcoming releases of Papyrus?
> Thank you.
Powered by FUDForum
. Page generated in 0.11537 seconds