Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How can I determine when Resource loading is complete?
icon5.gif  How can I determine when Resource loading is complete? [message #708439] Tue, 02 August 2011 20:15 Go to next message
Mirko Raner is currently offline Mirko RanerFriend
Messages: 125
Registered: July 2009
Location: New York City, NY
Senior Member
Hi all,

at my company, we're dealing with pretty large workspaces that often contain thousands of DSL files. Loading all resources in a workspace can take several minutes even on beefy machines, but users typically want to start working before resource loading is complete.
We noticed that a number of services (e.g., IXtextEObjectSearch) are not accurate until all resources have been loaded (no surprise there). Is there a way to determine when all resources for a certain DSL have been loaded, or alternatively, to wait until resource loading is completed?

Thanks,

Mirko
(no subject) [message #709099 is a reply to message #708439] Wed, 03 August 2011 13:50 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Mirko,

you could use the IRuleFactory#buildRule to synchronize Jobs with the
builder. Is that what you want to do?

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

On 02.08.11 22:15, Mirko Raner wrote:
> Hi all,
>
> at my company, we're dealing with pretty large workspaces that often
> contain thousands of DSL files. Loading all resources in a workspace can
> take several minutes even on beefy machines, but users typically want to
> start working before resource loading is complete.
> We noticed that a number of services (e.g., IXtextEObjectSearch) are not
> accurate until all resources have been loaded (no surprise there). Is
> there a way to determine when all resources for a certain DSL have been
> loaded, or alternatively, to wait until resource loading is completed?
>
> Thanks,
>
> Mirko
>
(no subject) [message #709104 is a reply to message #708439] Wed, 03 August 2011 13:50 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Mirko,

you could use the IRuleFactory#buildRule to synchronize Jobs with the
builder. Is that what you want to do?

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

On 02.08.11 22:15, Mirko Raner wrote:
> Hi all,
>
> at my company, we're dealing with pretty large workspaces that often
> contain thousands of DSL files. Loading all resources in a workspace can
> take several minutes even on beefy machines, but users typically want to
> start working before resource loading is complete.
> We noticed that a number of services (e.g., IXtextEObjectSearch) are not
> accurate until all resources have been loaded (no surprise there). Is
> there a way to determine when all resources for a certain DSL have been
> loaded, or alternatively, to wait until resource loading is completed?
>
> Thanks,
>
> Mirko
>
How can I determine when Resource loading is complete? [message #711104 is a reply to message #709099] Fri, 05 August 2011 19:21 Go to previous message
Mirko Raner is currently offline Mirko RanerFriend
Messages: 125
Registered: July 2009
Location: New York City, NY
Senior Member
Thanks, Sebastian. I will have a look at IRuleFactory. I guess what I really need to know is whether there are any outstanding resource URIs for which the resources have not been loaded and indexed yet. Maybe this is something more in the area around the ToBeBuiltComputer.
The basic problem is that if, for example, there are 10000 .dsl resources in the workspace and only 6000 of those have been loaded and indexed, it is not possible to get accurate results from the index. I'll do some more investigation in the resource collection mechanism to see whether I can find a good hook.
Previous Topic:Is it possible to write the dsl validations in xtend2?
Next Topic:Wizard for mydsl
Goto Forum:
  


Current Time: Fri Mar 29 01:11:11 GMT 2024

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

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

Back to the top