Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » With operator in Xbase?
With operator in Xbase? [message #1758954] Tue, 04 April 2017 19:11 Go to next message
Rodrigo Ruiz is currently offline Rodrigo RuizFriend
Messages: 28
Registered: March 2017
Junior Member
Hi,
is this available (with operator in Xbase)?
i see it in the grammar, but when i use it in my XBlockExpression:
val recentItem= new RecentFolders =>[folderItem=folder]

where RecentFolders is a regular POJO.
when validating it says:
Quote:

the method folderItem(folder) is undefined

It looks like is still trying to do something, but it's not reaching the setFolderItem for some reason, i'm not sure if xbase even supports that feature (it would be so cool)
Thanks for your help!
Re: With operator in Xbase? [message #1758956 is a reply to message #1758954] Tue, 04 April 2017 19:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

do you have xbase.lib on the classpath for the model project, e.g by adding xtend libary?


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: With operator in Xbase? [message #1758962 is a reply to message #1758956] Tue, 04 April 2017 19:37 Go to previous messageGo to next message
Rodrigo Ruiz is currently offline Rodrigo RuizFriend
Messages: 28
Registered: March 2017
Junior Member
Yes i have it
(i used to have '+' not recognized and adding xbase.lib solved it)
Re: With operator in Xbase? [message #1758963 is a reply to message #1758962] Tue, 04 April 2017 19:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
well then i cannot reproduce

//built with the domain model example
entity RecentFolders {
	folderItem : Folder
}

entity Folder {
}

entity Other {
	op xxxx() {
		val folder = new Folder
		val recentItem = new RecentFolders =>[folderItem=folder]
	}
}


=> i need more hints on how to reproduce


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: With operator in Xbase? [message #1758964 is a reply to message #1758963] Tue, 04 April 2017 19:41 Go to previous message
Rodrigo Ruiz is currently offline Rodrigo RuizFriend
Messages: 28
Registered: March 2017
Junior Member
Thanks Christian, knowing that it works will help me find out what else i'm doing wrong (i'm learning the hard way).
Best regards!
Previous Topic:How to customize log4j logging?
Next Topic:Cross referencing pre-defined "terminals"
Goto Forum:
  


Current Time: Tue Apr 23 14:15:28 GMT 2024

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

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

Back to the top