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: 30541
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.
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: Mon Oct 14 15:20:47 GMT 2019

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

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

Back to the top