Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Xcore] Defining get on derived features using reflective feature delegation
[Xcore] Defining get on derived features using reflective feature delegation [message #990824] Fri, 14 December 2012 11:04 Go to next message
Christoph Keimel is currently offline Christoph Keimel
Messages: 353
Registered: December 2010
Location: Germany
Senior Member
Hello

is it possible to define get for features when reflective (or dynamic) feature delegation is used?

Example:
@GenModel(featureDelegation="Reflective")
class MyClass {
	String name
	String firstName
	derived String fullName get {
		name + ", " + firstName
	}
}

My tests show that this is not implemented using EMF 2.8.1 and Xcore 1.0.1. Are there any plans to support this?

Greetings
Christoph
Re: [Xcore] Defining get on derived features using reflective feature delegation [message #990829 is a reply to message #990824] Fri, 14 December 2012 11:20 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26054
Registered: July 2009
Senior Member
Christoph,

Yes, this problem is related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385634. The guards for
when to emit the body verses what's generated otherwise is a little too
far down in the template. Perhaps you can append this example to that
bug to remind me that it needs attention; it shouldn't be too hard to fix...


On 14/12/2012 12:04 PM, Christoph Keimel wrote:
> @GenModel(featureDelegation="Reflective")
> class MyClass {
> String name
> String firstName
> derived String fullName get {
> name + ", " + firstName
> }
> }
Previous Topic:[CDO] Multi master (clone)
Next Topic:generate genmodel from schema xml
Goto Forum:
  


Current Time: Fri Sep 19 22:04:17 GMT 2014

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

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