Bug 515968 - [ClassDiagram] Synchonize with model needs 2 activations to be effective
Summary: [ClassDiagram] Synchonize with model needs 2 activations to be effective
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Diagram (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-28 13:27 EDT by Etienne Bertrand CLA
Modified: 2017-05-10 10:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Etienne Bertrand CLA 2017-04-28 13:27:36 EDT
Tested on Papyrus Oxygen (M6)

On Classes, Enumerations & Interfaces, the feature Synchronize with model is (sometimes) only effective when enabled for the second time (ie need to enable, disable, enable the synchro for it to work.)
Comment 1 Benoit Maggi CLA 2017-05-02 08:18:59 EDT
I tried with the current nightly but couldn't reproduce the issue.

Do you get an exception?
Comment 2 Etienne Bertrand CLA 2017-05-10 10:10:12 EDT
There is no exception thrown.

After investigation, the issue occurs when a custom CSS stylesheet is applied with the canonical attribute set to false on most of elements (you where right).

I don't know what the expected behavior is, but in this case the scenario is:
- Start from a new workspace
- From Papyrus Pref, apply a custom theme with an embedded stylesheet:
* {
  canonical:false;
}
- Create a new Papyrus project with a model
- Add a class with an attribute
- Check the class is not synced with the model
- Remove the attribute from the diagram
- From the menu RightClic > Filters, or from the ghost icon in the toolbar, clic Enable:
The property is still not displayed, the canonical status in the Property View (Appearance tab) is still set to false, but in the Filters menu, the "Synchronized with model" option is checked.
- Disable the option through the Filters menu:
The property is displayed, the canonical status in the Property View is set to true, but in the Filters menu, the "Synchronized with model" option is checked.

At one point, clicking on another element and selecting the class again restore the correct status of the option in the Filters Menu.

For now, removing the canonical attribute from the CSS solved my issue, but there may be a bug behind this...?