Skip to main content


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 17:20 Go to next message
Stefano puri is currently offline Stefano puriFriend
Messages: 6
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 17:58 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Fri Apr 19 01:36:04 GMT 2024

Powered by FUDForum. Page generated in 0.02831 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top