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

Bug 345418

Summary: [Property Editor] [General] listener on IObservableValue are never removed
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cletavernier
Version: 0.7.0   
Target Milestone: 0.8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 334240    
Attachments:
Description Flags
Bug fix for oep.widgets.editors.StringLabel rschnekenburger: iplog+

Description Vincent Lorenzo CLA 2011-05-11 09:24:57 EDT
I think this bug exists in many editors : the listener on IObservableValue are never removed when the widget is disposed, 
so the system can try to do a refresh on a disposed widget -> org.eclipse.swt.SWTException.

Currently, I added a test on StringLabel to do the refresh only if the widget is not disposed, but this new test mask the problem but doesn't resolve it.
Comment 1 Camille Letavernier CLA 2011-05-11 09:42:24 EDT
Created attachment 195348 [details]
Bug fix for oep.widgets.editors.StringLabel

I, Camille Letavernier, wrote 100% of the code I've provided.
This code contains no cryptography
I have the right to contribute the code to Eclipse.
I contribute the content under the EPL.
Comment 2 Camille Letavernier CLA 2011-07-01 08:40:22 EDT
Fixed in 0.8