Bug 494270 - Diagram is dirty at each opening (caused by tooltip)
Summary: Diagram is dirty at each opening (caused by tooltip)
Status: RESOLVED FIXED
Alias: None
Product: Ecoretools
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal
Target Milestone: 3.1.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 04:59 EDT by Laurent Redor CLA
Modified: 2016-05-23 09:47 EDT (History)
1 user (show)

See Also:


Attachments
Sample project to reproduce (2.92 KB, application/x-zip-compressed)
2016-05-23 04:59 EDT, Laurent Redor CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Redor CLA 2016-05-23 04:59:32 EDT
Created attachment 261935 [details]
Sample project to reproduce

With the Validation layer, the tooltip associated with object is someting like

> ERROR : The required feature 'eAttributeType' of 'org.eclipse.emf.ecore.impl.EAttributeImpl@33cd31cf{platform:/resource/EcoreToolsSample/My.ecore#//C1/requiredAttribute}' must be set

but the id of EObject changes at each Eclipse restart, so the diagram is dirty at each first opening after a restart of Eclipse. For example, after a restart, the same tooltip will be:

> ERROR : The required feature 'eAttributeType' of 'org.eclipse.emf.ecore.impl.EAttributeImpl@1dbef39d{platform:/resource/EcoreToolsSample/My.ecore#//C1/requiredAttribute}' must be set

Steps to reproduce:
* Import the project "EcoreToolsSample"
* Open the diagram "root class diagram"
* The diagram is dirty: KO
* Close the diagram.
* Open the diagram again, the diagram is not dirty: OK.
* Close the diagram.
* Restart eclipse
* Open the diagram, the diagram is dirty: KO.
Comment 1 Cedric Brun CLA 2016-05-23 09:43:50 EDT
Thanks for your feedback.

EMF iself compute this String with an explicit toString on the EObject.

I'll see if I can work-around this for the next build.
Comment 2 Cedric Brun CLA 2016-05-23 09:47:18 EDT
Fixed with commit : https://git.eclipse.org/c/ecoretools/org.eclipse.ecoretools.git/commit/?id=d22e1dc6819d9651696e98d61188f1bbface948c

It will be shipped as part of Neon RC2 later this week.