Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be 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/PropertyView/StereotypeDisplay"

< MDT‎ | Papyrus
(Stereotype Display via Property View)
(Stereotype Display via Property View)
Line 1: Line 1:
= Stereotype Display via Property View =
+
<h1> Stereotype Display via Property View </h1>
== Introduction ==
+
= Introduction =
 
By default the stereotype display is managed by the CSS (see [https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS/StereotypeDisplay Stereotype Display via CSS]. )
 
By default the stereotype display is managed by the CSS (see [https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS/StereotypeDisplay Stereotype Display via CSS]. )
  
Line 7: Line 7:
 
'''++ Figure'''
 
'''++ Figure'''
  
== Table Presentation ==
+
= Table Presentation =
 
The stereotype display can be managed via a table that contains 5 columns:
 
The stereotype display can be managed via a table that contains 5 columns:
 
Two columns for the Label:
 
Two columns for the Label:
Line 20: Line 20:
  
  
== Stereotype Label ==
+
= Stereotype Label =
 
The label of a stereotype contains the name of this stereotype on top of the node.  
 
The label of a stereotype contains the name of this stereotype on top of the node.  
 
This name can contain the whole path or only the last segment. If several stereotypes have the same last segment, it can be usefull to display more segments in order to make the difference between them.
 
This name can contain the whole path or only the last segment. If several stereotypes have the same last segment, it can be usefull to display more segments in order to make the difference between them.
 
This can be customized through the depth attribute.  
 
This can be customized through the depth attribute.  
  
=== Depth ===
+
== Depth ==
 
The depth column, allows the user to specify a depth for the selected view:
 
The depth column, allows the user to specify a depth for the selected view:
  
Line 32: Line 32:
 
The depth can be "full", "none" or a negative number that retrieve as many segments as indicated to the full path.  
 
The depth can be "full", "none" or a negative number that retrieve as many segments as indicated to the full path.  
  
==== Example: ====
+
=== Example: ===
 
If the full path is :  
 
If the full path is :  
 
  <nowiki>SysML::Blocks::Block</nowiki>
 
  <nowiki>SysML::Blocks::Block</nowiki>
Line 42: Line 42:
  
  
=== Display ===
+
== Display ==
 
The display column allows the user to hide specific stereotype Label. If the stereotype information is useless for the user, just disable the check box.  
 
The display column allows the user to hide specific stereotype Label. If the stereotype information is useless for the user, just disable the check box.  
  
== Stereotype Properties ==
+
= Stereotype Properties =
 
In addition of its name, stereotypes have properties most of time.  
 
In addition of its name, stereotypes have properties most of time.  
 
Those properties can be displayed at different locations:
 
Those properties can be displayed at different locations:
Line 54: Line 54:
 
'''++ Figure'''
 
'''++ Figure'''
  
=== Display Locations ===
+
== Display Locations ==
  
==== In Braces ====
+
=== In Braces ===
 
To display a stereotype property in braces, check the checkbox in the "In Braces" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in braces.  
 
To display a stereotype property in braces, check the checkbox in the "In Braces" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in braces.  
  
==== In Comment ====
+
=== In Comment ===
 
To display a stereotype property in comment, check the checkbox in the "In Comment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in comment.  
 
To display a stereotype property in comment, check the checkbox in the "In Comment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in comment.  
  
==== In Compartment ====
+
=== In Compartment ===
 
If the selected element is a Node (a Class , an Interface, a DataType ,... ), the properties can be displayed into a compartment into this node. To display a stereotype property in compartment, check the checkbox in the "In Compartment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in compartment.
 
If the selected element is a Node (a Class , an Interface, a DataType ,... ), the properties can be displayed into a compartment into this node. To display a stereotype property in compartment, check the checkbox in the "In Compartment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in compartment.
  
== Remarks ==  
+
= Remarks =  
 
*If a display is not possible (for example: trying to display properties into a compartment for a connection), no alert will inform you. Just nothing will happen.  
 
*If a display is not possible (for example: trying to display properties into a compartment for a connection), no alert will inform you. Just nothing will happen.  
  
 
*If the display doen't refresh when checking the different display checkboxes, it can help to refresh the diagram (F5).
 
*If the display doen't refresh when checking the different display checkboxes, it can help to refresh the diagram (F5).

Revision as of 05:06, 9 June 2015

Stereotype Display via Property View

Introduction

By default the stereotype display is managed by the CSS (see Stereotype Display via CSS. )

But if the user wants to customize the stereotype display for a specific element, it can be done through the property view, under the Appearance tab, after the Shape customization.

++ Figure

Table Presentation

The stereotype display can be managed via a table that contains 5 columns: Two columns for the Label:

  • Depth : The depth of the stereotype name.
  • Display: Define if the Label should be displayed or hidden.

Tree columns for the properties:

  • In Braces: Define if the property should be displayed in braces.
  • In Compartment: Define if the property should be displayed in a compartment (only for nodes).
  • In Comment: Define if the property should be displayed in a comment.

++ Figure


Stereotype Label

The label of a stereotype contains the name of this stereotype on top of the node. This name can contain the whole path or only the last segment. If several stereotypes have the same last segment, it can be usefull to display more segments in order to make the difference between them. This can be customized through the depth attribute.

Depth

The depth column, allows the user to specify a depth for the selected view:

++ Figure

The depth can be "full", "none" or a negative number that retrieve as many segments as indicated to the full path.

Example:

If the full path is :

SysML::Blocks::Block

Then the depth "-1" corresponds to:

Blocks::Block

Then the depth "-2" corresponds to:

Block

Same as the depth "none".


Display

The display column allows the user to hide specific stereotype Label. If the stereotype information is useless for the user, just disable the check box.

Stereotype Properties

In addition of its name, stereotypes have properties most of time. Those properties can be displayed at different locations:

  • In Comment
  • In Compartment (for nodes only)
  • In Braces

++ Figure

Display Locations

In Braces

To display a stereotype property in braces, check the checkbox in the "In Braces" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in braces.

In Comment

To display a stereotype property in comment, check the checkbox in the "In Comment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in comment.

In Compartment

If the selected element is a Node (a Class , an Interface, a DataType ,... ), the properties can be displayed into a compartment into this node. To display a stereotype property in compartment, check the checkbox in the "In Compartment" column, in front of the related property for a single property, or in front of the Stereotype to display all the properties in compartment.

Remarks

  • If a display is not possible (for example: trying to display properties into a compartment for a connection), no alert will inform you. Just nothing will happen.
  • If the display doen't refresh when checking the different display checkboxes, it can help to refresh the diagram (F5).

Back to the top