|
|
Re: Profile defined classes [message #1834869 is a reply to message #1834801] |
Thu, 19 November 2020 12:49 |
|
Hi,
when you want to type a property by a class, normally you have to create an instance of this class. But It is not possible in UML, there is no instances only instancespecification. In our profile, you must type your property by an instanceSpecification.
|
|
|
Re: Profile defined classes [message #1834879 is a reply to message #1834869] |
Thu, 19 November 2020 15:23 |
|
Hi, Philipp,
Yes, this almost works in Papyrus. The Class in your profile needs to be created somewhere, though, and that is in a stereotype. So you must create a composite association between some stereotype and your class. When you do that, then in the "Profile" tab in the properties, your applied stereotype expands to show the property of your class type and you can use the green "+" button on the right-hand side to create instances of the class in the stereotype application.
However, there does not appear to be a way to edit the properties of the class. This appears to be an oversight in the properties editing support for applied stereotypes. You can use the UML Editor to edit the class's properties.
I attach a screenshot showing how I create and edit instances of a "Bar" class composed in the "Foo" stereotype applied to an element in a UML model.
HTH,
Christian
|
|
|
|
Powered by
FUDForum. Page generated in 0.03026 seconds