Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341463

Summary: [Model browser] stays on "loading..." indefinitely
Product: [Modeling] MoDisco Reporter: Nicolas Bros <nicolas.bros>
Component: InfrastructureAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: hugo.bruneliere, modisco.web-inbox
Version: 0.9.0Flags: nicolas.bros: indigo+
Target Milestone: 0.9.0 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Nicolas Bros CLA 2011-03-31 07:42:55 EDT
Suddenly the browser doesn't work anymore: when I expand a node, it displays "loading...", and the children don't load.

I investigated, and found that the model change notification that used to happen, and which was supposed to refresh the browser and display the loaded node doesn't happen anymore.
Comment 1 Nicolas Bros CLA 2011-03-31 12:17:26 EDT
Fixed in revision 4214.
Comment 2 Nicolas Bros CLA 2011-04-01 03:42:57 EDT
I have added an explicit refresh after the value (children, text, image, ...) is computed, instead of relying on an indirect refresh through a model change notification that was supposed to trigger the refresh through a chain of events.

I extracted the asynchronous computing functionality into a new class NonBlockingElementComputation<T>, and I generalized it for each possibly blocking computation done by either the label or content providers.

The way it works is that it computes a value synchronously initially, and then it continues asynchronously if the computation takes too much time (> 200ms per computation).

I also fixed the "browse" functionality, so that it waits for the element to be displayed (after a refresh) until it attempts to select it.
Comment 3 Hugo Bruneliere CLA 2011-08-18 08:02:50 EDT
Bug solved.