Bug 573803 - Save icon is disabled when creating new representations
Summary: Save icon is disabled when creating new representations
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 6.4.2   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2021-05-27 05:03 EDT by Glenn Plouhinec CLA
Modified: 2021-10-13 11:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glenn Plouhinec CLA 2021-05-27 05:03:56 EDT
I noticed that the save icon doesn't have a consistent behavior when creating representations, or when switching between the tabs of these new representations.

To reproduce:
- Create a modeling project (ecore for instance)
- Save and close all tabs
- Open the representation file (*.aird)
- Create a new diagram.
 --> The tab of this new diagram and the aird tab should be "dirty". If you switch between these two tabs, the Save icon (top left) is enabled in the diagram tab, and disabled in the aird tab.
- Switch to the aird tab and Save with the keyboard shortcut Ctrl+s .
 --> Both tabs are saved and are no longer marked as "dirty".
- Create a new Table representation.
 --> If you switch between this new Table tab and the Aird tab, they are "dirty" and the Save icon is enabled. If you click on the previously created diagram tab, and switch back to the Table or aird tab, the Save icon is disabled for the latter two.

Note that this can be reproduced with a Table as well as with a CrossTable or a Tree.
Comment 1 Maxime Porhel CLA 2021-10-13 11:48:05 EDT
Reproduced with Capella 5.1 (based on Sirius 6.5.0 and Eclipse 2020-06).
The save icon is ok when the focus is set to a Sirius editor tab.

When the Activity Editor (editor opened on .aird) has the focus, the save button and File > Save actions are not enbaled wherease the "*" status is displayed. In the Project Explorer (Capella), the save button is enabled when the selection is set on the .aird. 

In the Model Explorer view (Sirius), the save action is not enabled (as expected).

I also confirm the difference between switching between diagram and table tabs.
Comment 2 Maxime Porhel CLA 2021-10-13 11:48:11 EDT
Reproduced with Capella 5.1 (based on Sirius 6.5.0 and Eclipse 2020-06).
The save icon is ok when the focus is set to a Sirius editor tab.

When the Activity Editor (editor opened on .aird) has the focus, the save button and File > Save actions are not enbaled wherease the "*" status is displayed. In the Project Explorer (Capella), the save button is enabled when the selection is set on the .aird. 

In the Model Explorer view (Sirius), the save action is not enabled (as expected).

I also confirm the difference between switching between diagram and table tabs.