[DSML/Diagram kind]: Forcing stereotype creation on model creation [message #1749989] |
Wed, 14 December 2016 19:01 |
nicolas metayer Messages: 4 Registered: December 2016 Location: Montréal, Canada |
Junior Member |
|
|
Hello,
I'm currently working on the implementation of a new profile within papyrus.
So far, using the SysML 1.4 plugins as example , I have managed to register my profile, create new viewpoint to have my new profile along with its diagram type showing up when using the using the menu "File -> new > Papyrus Model".
I have researched if my question has been already answered however I did not find answer to my question which is:
-Is there a way to force an user to create an instance of a stereotype when the user creates a new papyrus model with a specific diagram kind?
For example, using the attached plugins examples, when creating a new papyrus model for the "Test" profile selecting "test diagram", is it possible to force the user to create an instance of the "test" stereotype?
The idea would be to display an interface that ask the user to fill-in the stereotype attributes.
I'm expecting that this would require to add some code to the initializeModel() function that applies the profile to the model which is located in the class called by the "org.papyrus.infra.ui.papyrusDiagram" extension.
Could you please point me to some resources on how to implement such behavior (if it's possible) ?
Kind regards,
Nicolas
-
Attachment: test.zip
(Size: 46.83KB, Downloaded 103 times)
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03253 seconds