A palette tool to create edge between a stereotype and one of its property reference can be added.
This is an example for the creation of the palette tool which will permit to create stereotype property reference edge between a Unit from SysML and a Dimension to set the Unit’s feature dimension.
The first step is the creation of the Specialized Type Configuration for your stereotype property in an Element Type Set Congiguration model.
These parameters must be set in this way:
A specific advice binding configuration has to be added to the created specialized type. It’s the StereotypePropertyReferenceEdgeAdviceConfiguration. There are two ways to add this advice, from the element type set editor or through the palette configuration editor.
To add the advice configuration: right click on Element type set configuration > new child > Stereotype Property Reference EdgeAdvice
To configure the advice to set dimension feature from SysML::Blocks::Unit :
Another way to add advice is to pass by the palette tool editor when creating the palette tool. This permits to have facilities to browse available Stereotypes and features:
You can now create a palette tool. Add into the element types list the previous created specialized type.
In this example, the previously created models will be deployed through an architecture model. This architecture model will add models to class diagram in a new context.
After deploying the element type set configuration and palette configuration models, an edge can now be created between Unit and dimension. This creation will set the dimension feature value of Unit.
The edge appearance can be customized with CSS. Specific CSS Selectors have been added:
Moreover the edge label can be changed with “label” CSS attribute.
Connector[sourceAppliedStereotypes="SysML::Blocks::Unit"][featureToSet="dimension"]{ lineColor: blue; label: "dimensionRef"; }