Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [Xcore] derived feature and notification
[Xcore] derived feature and notification [message #885023] Tue, 12 June 2012 09:32
Jeeeyul Lee is currently offline Jeeeyul LeeFriend
Messages: 117
Registered: July 2009
Location: Seoul
Senior Member

Consider below situation:
class Person{
	String firstName
	String lastName

	derived String fullName get{
		return firstName + lastName
	}
}


When "firstName" or "lastName" is changed, "fullName" will be also changed.
But there will be no notification for "fullName".

with ecore, I wrote manual setter methods for "firstName" and "lastName" to make a notification for derived feature. in Xcore, I could not find way to override setter for this purpose.

any idea?

[Updated on: Tue, 12 June 2012 09:33]

Report message to a moderator

Previous Topic:Error: Duplicate VarDecl 'i' (scoping problem)
Next Topic:[xtext] importUri is default when generating xtext project from existing ecore metamodels
Goto Forum:
  


Current Time: Wed Oct 21 00:03:49 GMT 2020

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

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

Back to the top