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

Bug 133942

Summary: DeferredUpdateManager should not use Display.getCurrent() to spawn an asynchronous execution
Product: [Tools] GEF Reporter: Steven R. Shaw <steveshaw>
Component: GEF-Legacy GEF (MVC)Assignee: Steven R. Shaw <steveshaw>
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: schafe, wdiu
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Steven R. Shaw CLA 2006-03-29 17:35:55 EST
This defeats the purpose of spawning the request asynchronous since it prevents clients refreshing EditParts on a separate thread.

Scenario:
- Client creates a model element on a separate thread which triggers AbstractEditPart.refreshChildren which then triggers creation of Figure and hence validation.  Validation causes update which then NPE because Display.getCurrent() is called.
Comment 1 Steven R. Shaw CLA 2006-03-29 17:42:46 EST
Fixed
Comment 2 Randy Hudson CLA 2006-03-31 15:06:20 EST
Duplicate.

*** This bug has been marked as a duplicate of 125197 ***