Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Papyrus customization - filter possible values for a property
Papyrus customization - filter possible values for a property [message #711005] Fri, 05 August 2011 13:20 Go to next message
Stefano Missing name is currently offline Stefano Missing name
Messages: 2
Registered: April 2011
Junior Member
Hello,

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 code?
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.
Stefano.
Re: Papyrus customization - filter possible values for a property [message #711044 is a reply to message #711005] Fri, 05 August 2011 13:58 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4004
Registered: July 2009
Senior Member
Hi

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.

Regards

Ed Willink

On 05/08/2011 18:20, Stefano wrote:
> Hello,
>
> 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
> code?
> 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.
> Stefano.
Previous Topic:Lollipop notation in class diagram
Next Topic:Git?
Goto Forum:
  


Current Time: Sat Jul 26 11:14:20 EDT 2014

Powered by FUDForum. Page generated in 0.06961 seconds