Community
Participate
Working Groups
https://wiki.eclipse.org/Papyrus/Mars_Work_Description/NewFeature/Shape_customisation describes new mars capabilities for Shape customization. However, it turns out that most features only work for very specific situations, and these limitations seem to be completely undocumented? Some examples: 1/ Port{ portPosition:"inside"; /*onLine, outside*/ } only works on a component diagram, but not on a Composite Structure diagram (and hence neither on a SysML IBD diagram) 2/ Class > Compartment{ lineLength:1; } works fine on UML class diagrams, but not for classes on the CS diagram, and only partially for Blocks on a SysML 1.4 BDD diagram
Created attachment 255059 [details] Illustrates the problem with SysML 1.4 Attachment illustrates the result of Class{ textAlignment:"left"; displayHeader:true; /* qualifiedNameDepth:full; */ } Class > Compartment{ lineLength:1; } To a SysML 1.4 BDD. Note that the lineLength property is respected for some, but not all compartments
I can confirm this bug. Related to what was mentioned in bug 437186, the following also does not work (1.1.0.201507130504) (tested on UML class diagrams and SysML 1.1 BDDs): Class[isAbstract=false] > Property[appliedStereotypes~="myStereotype"] { fontColor: #B20000; bold: true; } I.e., all properties to which the stereotype "myStereotype" is applied that are owned by non-abstract classes, the font color and boldness is to be adjusted. A couple of other things don't seem to behave well either: e.g., when setting "displayTag" to "true" for Property, this enables the stereotype of a property to be visible when an element is dragged from the model explorer onto a diagram. However, none of the existing elements on the diagram are affected (even when turning "model synchronization" off and on again, or reopening diagrams) (is this even valid syntax? Defined for Shape and Connector only according to doc? But is Property a subtype of Shape?).
> Class[isAbstract=false] > Property[appliedStereotypes~="myStereotype"] { The property is not owned directly by the Class (Which is the meaning of >). There is an intermediate component Using the following should work (For both structure compartments in StructureD and attributes compartment in ClassD): Class[isAbstract=false] > Compartment > Property[appliedStereotypes~="myStereotype"] { ... }
Seems to be related to 436547, 471105 @Camille, as you might have seen. In the original bug example there are no selectors applied, so I would guess that this is clearly not an example of syntax errors in the css file.