Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345418 - [Property Editor] [General] listener on IObservableValue are never removed
Summary: [Property Editor] [General] listener on IObservableValue are never removed
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Camille Letavernier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334240
  Show dependency tree
 
Reported: 2011-05-11 09:24 EDT by Vincent Lorenzo CLA
Modified: 2012-03-28 05:17 EDT (History)
1 user (show)

See Also:


Attachments
Bug fix for oep.widgets.editors.StringLabel (1.54 KB, patch)
2011-05-11 09:42 EDT, Camille Letavernier CLA
rschnekenburger: iplog+
Details | Diff

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