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
(Created page with "= Stereotype Display via Property View = == Introduction == By default the stereotype display is managed by the CSS (see [https://wiki.eclipse.org/MDT/Papyrus/UserGuide/CSS/St...")
 
(Stereotype Display via Property View)
Line 27: Line 27:
 
=== 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:
'''++ figure'''   
+
 
 +
'''++ 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 :
 +
<nowiki>SysML::Blocks::Block</nowiki>
 +
Then the depth "-1" corresponds to:
 +
<nowiki>Blocks::Block</nowiki>
 +
Then the depth "-2" corresponds to:
 +
<nowiki>Block</nowiki>, same as the depth "none".
 +
 
 +
 
 
=== Display ===
 
=== Display ===
  
 
== Stereotype Properties ==
 
== Stereotype Properties ==
 
=== Display Location ===
 
=== Display Location ===

Revision as of 04:45, 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

Stereotype Properties

Display Location

Back to the top