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"

(CSS Exemple)
(Stereotype Display by CSS (DRAFT : Work in Progress for Mars))
Line 1: Line 1:
 
= Stereotype Display by CSS (DRAFT : Work in Progress for Mars)=
 
= Stereotype Display by CSS (DRAFT : Work in Progress for Mars)=
== CSS Exemple==
+
== Default CSS ==
Here is some exemple of CSS to display the Stereotype:
+
The following CSss rules are implemented by default for all the Diagrams:
  
<source lang="css">Label[type=StereotypeLabel][stereotype="SysML::Blocks::Block"]{
+
<source lang="css">
 +
Shape[type=StereotypeComment]{
 
visible:false;
 
visible:false;
 
}
 
}
  
Label[type=StereotypeLabel]{
+
Shape[type=StereotypeComment] Compartment[type=StereotypeBrace]{
depth:"-1";
+
visible:false;
 
}
 
}
  
*[type=StereotypeCompartment][stereotype="SysML::Blocks::Block"]{
+
Compartment[type=StereotypeCompartment]{
 
visible:false;
 
visible:false;
 
}
 
}
  
Label[type=StereotypeProperty][property="allocatedFrom"]{
+
Compartment[type=StereotypeBrace]{
 
visible:false;
 
visible:false;
 
}
 
}
  
Label[type=StereotypeProperty]{
+
Label[type=StereotypeLabel]{
inBrace: true;
+
depth:"none";
inCompartment: false;
+
}
 +
 
 +
</source>
 +
 
 +
 
 +
== CSS Exemple==
 +
Here is some exemple of CSS to display the Stereotype:
 +
 
 +
<source lang="css">
 +
 
 +
Label[type=StereotypeLabel]{
 +
depth:-1;
 +
}
 +
 
 +
Compartment[type=StereotypeCompartment]{
 +
visible:true;
 
}
 
}
  
*[type=StereotypeCompartment][stereotype="SysML::Requirements::Requirement"]{
+
</source>
inComment: false;
+
inCommentBrace: true;
+
inCompartment: true;
+
inBrace: false;
+
}</source>
+

Revision as of 08:59, 12 March 2015

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

Default CSS

The following CSss 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;
}

Back to the top