Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » defaultValueLiteral for EEnum attribute with multi-selection
defaultValueLiteral for EEnum attribute with multi-selection [message #1706476] Thu, 27 August 2015 08:42 Go to next message
Niklas Deutschmann is currently offline Niklas DeutschmannFriend
Messages: 1
Registered: August 2015
Junior Member
Is there any way to set the defaultValueLiteral for an enumeration attribute that permits multi-selection (upperBound=-1) so that a selection of multiple options is the default value?

I would really to have this in the Ecore model without any additional initialization code only for this case.
Re: defaultValueLiteral for EEnum attribute with multi-selection [message #1706525 is a reply to message #1706476] Thu, 27 August 2015 13:39 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Niklas,

No, there's no support for multi-valued defaults. It's likely not the
best way to model things. E.g., is order significant? Can there be
duplicates? Likely it's more of a bitset sort of thing, i.e., a bunch
of booleans...


On 27/08/2015 3:07 PM, Niklas Deutschmann wrote:
> Is there any way to set the defaultValueLiteral for an enumeration
> attribute that permits multi-selection (upperBound=-1) so that a
> selection of multiple options is the default value?
>
> I would really to have this in the Ecore model without any additional
> initialization code only for this case.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Error when saving a model having two editors opened
Next Topic:[EMF Transactions] Possible workarounds for IllegalStateExceptions from TransactionChangeRecorder?
Goto Forum:
  


Current Time: Fri Apr 26 16:47:03 GMT 2024

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

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

Back to the top