Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext Builder delta
Xtext Builder delta [message #643634] Tue, 07 December 2010 17:11 Go to next message
Patrik Nordwall is currently offline Patrik NordwallFriend
Messages: 2
Registered: July 2009
Junior Member
I'm trying to figure out if Xtext Builder can be used for partial generation when saving model file. When trying the domainmodel example it looks like the delta contains more changes than I would expect.

A typical use case is to add an attribute in an entity.
	entity Foo {
		 aaa : String
	}
	
	entity Bar {
		aaa : String
		newAttr : String
	}


When adding newAttr in above sample I would like to only generate Bar, but the delta contains both Foo and Bar, both newOnes and oldOnes.

Is it possible to track changes at a more fine grained level? How would you implement the described use case in the domainmodel sample?

/Patrik
Re: Xtext Builder delta [message #643665 is a reply to message #643634] Tue, 07 December 2010 18:45 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Patrik,

you are always free to create a fine grained delta for the EObject
descriptions of a given resource description delta. That should solve
your problem, doesn't it?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 07.12.10 18:11, schrieb Patrik Nordwall:
> I'm trying to figure out if Xtext Builder can be used for partial
> generation when saving model file. When trying the domainmodel example
> it looks like the delta contains more changes than I would expect.
>
> A typical use case is to add an attribute in an entity.
>
> entity Foo {
> aaa : String
> }
>
> entity Bar {
> aaa : String
> newAttr : String
> }
>
>
> When adding newAttr in above sample I would like to only generate Bar,
> but the delta contains both Foo and Bar, both newOnes and oldOnes.
>
> Is it possible to track changes at a more fine grained level? How would
> you implement the described use case in the domainmodel sample?
>
> /Patrik
Previous Topic:Possible different handling of 'reserved' words
Next Topic:Dependencies of one grammar on another
Goto Forum:
  


Current Time: Fri Apr 26 11:17:05 GMT 2024

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

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

Back to the top