Community
Participate
Working Groups
Build Identifier: Build id: 20100617-1415 I am creating some plugins for specific use in my Company. Some of them contribute (by code: Java) to a model. So elements are added to a model in a code way. I was wondering if it is possible to add a functionnality to update automatically the diagrams according to the elements added in the model (update diagrams elements view to add new elements automatically). Reproducible: Always
Surely there is an API for this as there exists a diagram refresh button in Papyrus?
This is a different case. F5/Refresh diagram is for refreshing the graphical properties of displayed elements (Especially useful when manipulating stylesheets, because style properties can change, while the diagram itself remains unchanged) Here, if I understand correctly, this is a request to automatically display new semantic elements on an existing diagram (e.g. you create a new Operation in a Class programatically, and it automatically gets displayed in the Class diagram). There is currently no plan in Papyrus to support that.
Ah I see. It would be a bad idea to have diagrams automatically in sync with the model. I though the bug was about having an API to add the elements to the diagram, this exists I assume? This item should be closed I think.
For an automatic update of a diagram, you should check the property "Sync with model" in the Appearance Tab of the property view. I close the bug