Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MDT/Papyrus/UserGuide/CSS/StereotypeDisplay"

(Default CSS)
(CSS Exemple)
Line 36: Line 36:
  
 
Compartment[type=StereotypeCompartment]{
 
Compartment[type=StereotypeCompartment]{
 +
visible:true;
 +
}
 +
 +
Compartment[type=StereotypeCompartment]>[property="allocatedTo"]{
 +
visible:false;
 +
}
 +
 +
Compartment[stereotype="SysML::Blocks::Block"]{
 +
visible:false;
 +
}
 +
 +
Shape[type=StereotypeComment]{
 +
visible:true;
 +
}
 +
 +
Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{
 
visible:true;
 
visible:true;
 
}
 
}
  
 
</source>
 
</source>

Revision as of 05:26, 13 March 2015

Stereotype Display by CSS (DRAFT : Work in Progress for Mars)

Default CSS

The following CSS rules are implemented by default for all the Diagrams:

Shape[type=StereotypeComment]{
	visible:false;
}
 
Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{
	visible:false;
}
 
Compartment[type=StereotypeCompartment]{
	visible:false;
}
 
Compartment[type=StereotypeBrace]{
	visible:false;
}
 
Label[type=StereotypeLabel]{
	depth:"none";
}

CSS Exemple

Here is some exemple of CSS to display the Stereotype:

Label[type=StereotypeLabel]{
	depth:-1;
}
 
Compartment[type=StereotypeCompartment]{
	visible:true;
}
 
Compartment[type=StereotypeCompartment]>[property="allocatedTo"]{
	visible:false;
}
 
Compartment[stereotype="SysML::Blocks::Block"]{
	visible:false;
}
 
Shape[type=StereotypeComment]{
	visible:true;
}
 
Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{
	visible:true;
}

Back to the top