Skip to main content



      Home
Home » Modeling » TMF (Xtext) » [Xcore] derived feature and notification
[Xcore] derived feature and notification [message #885023] Tue, 12 June 2012 05:32
Eclipse UserFriend
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 05:33] by 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: Thu Jul 03 20:58:14 EDT 2025

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

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

Back to the top