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

Bug 470141

Summary: Diagram not visible in model explorer after pull from Git
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: CoreAssignee: Project inbox <sirius.core-inbox>
Status: CLOSED FIXED QA Contact: Florian Barbin <florian.barbin>
Severity: normal    
Priority: P3 CC: florian.barbin, laurent.redor, maxime.porhel, stephane.thibaudeau
Version: 3.0.0Keywords: triaged
Target Milestone: 3.0.1   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/50162
Whiteboard:
Bug Depends on: 466566, 467508, 470083    
Bug Blocks:    

Description Maxime Porhel CLA 2015-06-15 03:20:54 EDT
+++ This bug was initially created as a clone of Bug #470083 +++

+++ This bug was initially created as a clone of Bug #466566 +++

N.B. : This problem was first encountered using RTC but I was able to reproduce it using Git and even by just copying files into the project.

Steps to reproduce (with Git) :

1) Import the provided project. This project contains a main semantic resource and a controlled one. There is one aird file.
This project should be committed into a Git repository

2) Clone the Git repository to another place. Open a new workspace and import the project from Git

3) In the first workspace, create a representation (class diagram) on the sub-package (contained in the controlled semantic resource).

4) Extract this new diagram into a new aird file

5) Commit the modifications (1 modified aird and 1 new aird)

6) In the second workspace, pull the modifications.
=> the diagram is not visible in the tre under My.ecore. Though it is visible when unfolding the new aird file.

7) Close/Open the modeling project => the diagram is now visible in the semantic tree.


Steps to reproduce (without Git)

1) Import the provided projects in 2 different workspaces.

2) Execute steps (3) and (4) from above in the first workspace

3) Copy the 2 aird files (1 modified and 1 new) into the second workspace

4) You should face the same problem.
Comment 1 Eclipse Genie CLA 2015-06-15 03:24:41 EDT
New Gerrit change created: https://git.eclipse.org/r/50162
Comment 2 Maxime Porhel CLA 2015-06-15 11:14:35 EDT
Test Gerrit patchset has been abandoned.

The proposed test was unreliable: the workspace does not always the change on the main aird and ecore file. The IResourceDelta of the IResourceChangeEvent often contains only the delta for the added fragments and not for the modified files (modified using the test api EclipseTestsSupportHelper). In debug, the delta is often ok and then the reload behavior is correct.

The test will be replaced by a manual scenario.


See the scenario on Bug #466566
Comment 3 Maxime Porhel CLA 2015-06-16 03:24:16 EDT
After a last try, the test has been stabilized and merged.
Comment 4 Pierre-Charles David CLA 2015-12-15 05:22:07 EST
Available in Sirius 3.0.1 released on 2015-09-10.