Skip to main content



      Home
Home » Modeling » EMF » defaultValueLiteral for EEnum attribute with multi-selection
defaultValueLiteral for EEnum attribute with multi-selection [message #1706476] Thu, 27 August 2015 04:42 Go to next message
Eclipse UserFriend
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 09:39 Go to previous message
Eclipse UserFriend
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 Jul 07 21:09:24 EDT 2025

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

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

Back to the top