Skip to content

[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:

  1. Create a first Papyrus model, called "MyLibrary", with some classes. Save it.

  2. Create a second Papyrus model, called "MyModel", with a Papyrus-Sirius class Diagram.

  3. 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.

  4. Select a class from MyLibrary to DnD it into the Papyrus-Sirius Diagram.
    -> nothing happens\

  5. Save the model, close Papyrus, and reopen the Model.

  6. 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.