Bug 443907 - When copying multiple models inside a modeling project, only the first one is added to the session
Summary: When copying multiple models inside a modeling project, only the first one is...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: Lakshminarayana CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-09-12 04:42 EDT by Pierre-Charles David CLA
Modified: 2021-01-24 04:24 EST (History)
5 users (show)

See Also:


Attachments
2 big models (3.21 KB, application/octet-stream)
2014-12-12 08:49 EST, Belqassim Djafer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Charles David CLA 2014-09-12 04:42:37 EDT
Steps to reproduce:
1. Create an empty non-modeling project, with two models inside (for example two ecore files).
2. Create an empty modeling project beside the other one.
3. Select the two models from the first project, and copy/paste them into the modeling project. They should both be detected as semantic models and added to the session, but only one is (presumably the first in the selection).

Note that if you copy/paste the models one at a time, at the end both are correctly added in the session.
Comment 1 Pierre-Charles David CLA 2014-09-12 04:58:47 EDT
Actually it looks like the resources are both correctly added into the session, but the UI is inconsistent: only the first can be expanded. Closing and reopening the project shows that both resources are in fact correctly registered as semantic models in the session.
Comment 2 Maxime Porhel CLA 2014-09-29 09:34:30 EDT
Looks like we should launch the refresh on the project or on each added file and not only on the first.
Comment 3 Belqassim Djafer CLA 2014-12-12 08:31:36 EST
T reproduced by using 2 big models, the two models are added to the session, but only the first can be expanded. A refresh solves the problem
Comment 4 Belqassim Djafer CLA 2014-12-12 08:49:44 EST
Created attachment 249385 [details]
2 big models

Models to reproduce
Comment 5 Eclipse Genie CLA 2021-01-17 12:17:02 EST
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/174951