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

Bug 360779

Summary: "Getter called on disposed observable" after editing property with xtext editor
Product: [Modeling] Papyrus Reporter: Nicolas Bros <nicolas.bros>
Component: CoreAssignee: Camille Letavernier <cletavernier>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipse-bugzilla
Version: 0.8.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 367423    
Attachments:
Description Flags
stacktrace
none
stacktrace (setting multiplicity) none

Description Nicolas Bros CLA 2011-10-13 04:34:40 EDT
Created attachment 205102 [details]
stacktrace

- add a Property on a Class in a class diagram
- right click the Property and select "Edit Property > Using Advanced Property Textual Editor Editor"
- enter the visibility, name and type of the property
- click anywhere in the diagram outside the xtext editor to dismiss it

you get the attached exception

- hit Ctrl+Z (Undo)

you get a few more of the attached exception again
Comment 1 Nicolas Bros CLA 2011-10-13 05:24:06 EDT
Created attachment 205108 [details]
stacktrace (setting multiplicity)

I also got a similar exception while setting the multiplicity of a Parameter through the org.eclipse.papyrus.properties.creation.EditionDialog opened from the Property view.
Comment 2 Camille Letavernier CLA 2011-10-13 08:36:02 EDT
> - click anywhere in the diagram outside the xtext editor to dismiss it

If you press ctrl + enter to validate the modification, you don't have any error.

If you select another element :

- The property is validated
- The property view changes to display the other other element's properties
- The property's property view tries to refresh itself in the same time...

I will check the order of the events, to see why it tries to refresh itself just after being disposed.

> I also got a similar exception while setting the multiplicity of a Parameter through the org.eclipse.papyrus.properties.creation.EditionDialog opened from the Property view.

I couldn't reproduce this one...
Comment 3 Sébastien Gérard CLA 2011-10-17 14:20:37 EDT
Arnaud, can you check this bug please.

thanks,
Seb.
Comment 4 Camille Letavernier CLA 2012-03-06 06:02:00 EST
Fixed in r7352 (Branch 0.8.X)
Fixed in r7353 (Trunk)