Skip to main content



      Home
Home » Modeling » EMF » [XCore] default value
[XCore] default value [message #1052964] Wed, 01 May 2013 11:30 Go to next message
Eclipse UserFriend
Hi,

is there a possiblity in XCore to create default values for references? A would like to do something like this

class A {
int x
}

class B {
contains A a = new A
}

If not, is there a possibility to do it somehow without touching the generated code?

thanks.
Re: [XCore] default value [message #1052983 is a reply to message #1052964] Wed, 01 May 2013 13:23 Go to previous message
Eclipse UserFriend
Martin,

No, you can't set default values for EReferences. Best not to try that
even in hand modified.


On 01/05/2013 5:30 PM, Martin odloucký wrote:
> Hi,
> is there a possiblity in XCore to create default values for
> references? A would like to do something like this
>
> class A {
> int x
> }
>
> class B {
> contains A a = new A
> }
>
> If not, is there a possibility to do it somehow without touching the
> generated code?
>
> thanks.
Previous Topic:Saving EMF Resources
Next Topic:Initialize EMF node with default name
Goto Forum:
  


Current Time: Fri Jul 18 16:06:32 EDT 2025

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

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

Back to the top