Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Reduce default value selection list
Reduce default value selection list [message #1754196] Wed, 15 February 2017 08:46 Go to next message
Marc Van Vlimmeren is currently offline Marc Van VlimmerenFriend
Messages: 1
Registered: February 2017
Junior Member
When adding a default value for a property, a type selection list is shown. (See attached screen shot)
For a DSML application, I would like to reduce this list to only 2 entries (LiteralReal and OpaqueExpression).
Is this possible and if yes, how can I do that?

Marc
Re: Reduce default value selection list [message #1755048 is a reply to message #1754196] Mon, 27 February 2017 14:03 Go to previous message
Benoit Maggi is currently offline Benoit MaggiFriend
Messages: 129
Registered: March 2013
Location: Bordeaux, France
Senior Member
Hi,

As far as I know, there is no "standard" way to do that/

I looked in the code and the default value widget is ReferenceDialog
(See these classes : org.eclipse.papyrus.infra.properties.ui.widgets.ReferenceDialog and org.eclipse.papyrus.infra.widgets.editors.ReferenceDialog)

One option is to create a custom property view and extends theses classes with a custom implementation.

Benoit,









Previous Topic:Applying OCL on UML profiles
Next Topic:How to build and run the papyrus source code?
Goto Forum:
  


Current Time: Fri Mar 29 13:41:59 GMT 2024

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

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

Back to the top