Skip to main content



      Home
Home » Modeling » TMF (Xtext) » higher-level access to model
higher-level access to model [message #874670] Mon, 21 May 2012 06:43 Go to next message
Eclipse UserFriend
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 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi have a look at OnChangeEvictingCache
Re: higher-level access to model [message #874680 is a reply to message #874677] Mon, 21 May 2012 06:59 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 12:18:52 EDT 2025

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

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

Back to the top