Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » higher-level access to model
higher-level access to model [message #874670] Mon, 21 May 2012 10:43 Go to next message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Hi,

My model may contain information that is spread all over it, but that needs to be possible to present as a single item. For example, there is meta-information about which functions are exported from a module; a sane API would have a Module.getExportedFunctions that consolidates it.

The way I started to do it is by writing helper methods that do this work. Using Xtend, they even look like native methods of Module.

But there is a problem: I don't want to build this information every time it is needed. I can cache it, but the cache needs to be cleared whenever the model changes. Do I have to use my own build participant, or is there another way?

best regards,
Vlad
Re: higher-level access to model [message #874677 is a reply to message #874670] Mon, 21 May 2012 10:45 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13489
Registered: July 2009
Senior Member
Hi have a look at OnChangeEvictingCache

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: higher-level access to model [message #874680 is a reply to message #874677] Mon, 21 May 2012 10:59 Go to previous message
Vlad Dumitrescu is currently offline Vlad DumitrescuFriend
Messages: 430
Registered: July 2009
Location: Gothenburg
Senior Member
Ah, great, thanks!
Previous Topic:XText 2.3.0M6 problem with setInitializer
Next Topic:[Xtext 2.3.0M7] org.hamcrest in the test plugin
Goto Forum:
  


Current Time: Wed Jul 08 02:56:10 GMT 2020

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

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

Back to the top