Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341463 - [Model browser] stays on "loading..." indefinitely
Summary: [Model browser] stays on "loading..." indefinitely
Status: CLOSED FIXED
Alias: None
Product: MoDisco
Classification: Modeling
Component: Infrastructure (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.9.0 M7   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 07:42 EDT by Nicolas Bros CLA
Modified: 2011-08-18 08:02 EDT (History)
2 users (show)

See Also:
nicolas.bros: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.