[Sirius][ClassDiagram] Import/load a resource into the Model doesn't allow to drop its elements into a Sirius Diagram
| Bugzilla Link | 581404 |
| Status | ASSIGNED |
| Importance | P3 normal |
| Reported | Jan 23, 2023 09:14 EDT |
| Modified | Jan 23, 2023 09:17 EDT |
| Version | 0.7.0 |
| Blocks | 581393 |
Description
Steps to reproduce:
-
Create a first Papyrus model, called "MyLibrary", with some classes. Save it.
-
Create a second Papyrus model, called "MyModel", with a Papyrus-Sirius class Diagram.
-
from the ModelExplorer, right-Click -> Import -> Import package From User Model", select "MyLibrary". and IMPORT it into the model (not just LOAD).
now this library is displayed in the ModelExplorer. -
Select a class from MyLibrary to DnD it into the Papyrus-Sirius Diagram.
-> nothing happens\ -
Save the model, close Papyrus, and reopen the Model.
-
Select the same class from MyLbrary in the ModelExplorer and try to drop it into the Papyrus-Sirius diagram.
-> now it works.
Analysis. The first time it didn't work because the resource MyLibrary.uml was not included into the Sirius Session (semanticResource field in the aird file). The Save action doesn't change this status, but reopening it, we launch an update of the semantic resources attached to the Session.