|
Re: Editing the values of a composite association from Stereotype to class [message #1747938 is a reply to message #1746739] |
Thu, 17 November 2016 00:25 |
Sebastien Revol Messages: 14 Registered: July 2015 Location: Grenoble, France |
Junior Member |
|
|
Hi Vetle,
Unfortunately, I think that Papyrus properties view is currently not designed to support such use case.
In practice, a profile definition leads to a new ecore metamodel definition. Stereotypes are transformed into EClass with a EReference to the base UML metaclass it is extending. UML Classes or DataType in profiles are also transformed into EClasses.
In a UML model using this profile, a stereotype application is in practice an instanciation of the corresponding EClass. Currently the properties view only allows to specify values for the properties of those stereotype applications.
As you mentionned, it is also allowing the creation of instances of EClass coming from UML Classes in profiles, but I'm afraid it is not possible to edit their properties.
Maybe, a possible workaround can be to rely on the properties view generator to create a custom properties editor for your profile, (http://help.eclipse.org/neon/topic/org.eclipse.papyrus.views.properties.doc/target/generated-eclipse-help/properties-view.html?cp=65_1_1_0_5#Generation_Tool and maybe (not tested), you will have a custom tab for your IntervalFrequency and ExactFrequence EClasses, that you could open with double click on the instance after its creation.
Else, the low cost solution is to merge all the attributes in the RiskyMessage stereotype, and implement validation rules to ensure that users exclusively use <min/max> or exact tag values.
Last, to be complete, MARTE Value Specification Language http://www.omg.org/omgmarte/Documents/tutorial/part2.pdf was precisely designed for that purpose, standardizing a textual syntax for DataType instanciation. But I'm not sure the tooling around this is fully implemented/operationnal.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.24543 seconds