Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Dumoulin2014-12-11 21:17:45 +0000
committerCedric Dumoulin2015-01-05 10:10:28 +0000
commit04704b18646d0d1a43ef224c2a1fe9cbbb34959a (patch)
treeaed090571ecf483c7e1cd55abbd65a834f61721d /plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource
parent90093cf0eb29d008828800cc55c5ed3fc541fac6 (diff)
downloadorg.eclipse.papyrus-04704b18646d0d1a43ef224c2a1fe9cbbb34959a.tar.gz
org.eclipse.papyrus-04704b18646d0d1a43ef224c2a1fe9cbbb34959a.tar.xz
org.eclipse.papyrus-04704b18646d0d1a43ef224c2a1fe9cbbb34959a.zip
454275: [Profiles] Use level 2 title in docs. Add __TOC__ at the
begining of doc files. Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=454275
Diffstat (limited to 'plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource')
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes-toc.xml15
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.html2
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.mediawiki19
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture-toc.xml7
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.html2
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.mediawiki8
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.html5
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.mediawiki3
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/profile-main-toc.xml18
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml7
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.html6
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.mediawiki6
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes-toc.xml11
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.html2
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.mediawiki11
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile-toc.xml2
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.html2
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.mediawiki3
18 files changed, 66 insertions, 63 deletions
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes-toc.xml
index 87638184611..804cd6ee7f5 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes-toc.xml
@@ -1,13 +1,14 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/users/definingProfilesAndStereotypes.html" label="definingProfilesAndStereotypes">
- <topic href="resource/users/definingProfilesAndStereotypes.html" label="Defining Profiles and Stereotypes"></topic>
- <topic href="resource/users/definingProfilesAndStereotypes.html#Creating_a_Profile_Resource" label="Creating a Profile Resource"></topic>
- <topic href="resource/users/definingProfilesAndStereotypes.html#Defining_a_Stereotype" label="Defining a Stereotype">
- <topic href="resource/users/definingProfilesAndStereotypes.html#Creating_a_Stereotype" label="Creating a Stereotype"></topic>
- <topic href="resource/users/definingProfilesAndStereotypes.html#Importing_Metaclass" label="Importing Metaclass"></topic>
- <topic href="resource/users/definingProfilesAndStereotypes.html#Linking_Stereotype_to_Metaclass_:_Extension_Creation" label="Linking Stereotype to Metaclass : Extension Creation"></topic>
+ <topic href="resource/users/definingProfilesAndStereotypes.html" label="Defining Profiles and Stereotypes">
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Creating_a_Profile_Resource" label="Creating a Profile Resource"></topic>
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Defining_a_Stereotype" label="Defining a Stereotype">
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Creating_a_Stereotype" label="Creating a Stereotype"></topic>
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Importing_Metaclass" label="Importing Metaclass"></topic>
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Linking_Stereotype_to_Metaclass_:_Extension_Creation" label="Linking Stereotype to Metaclass : Extension Creation"></topic>
+ </topic>
<topic href="resource/users/definingProfilesAndStereotypes.html#Creating_a_Subprofile" label="Creating a Subprofile"></topic>
<topic href="resource/users/definingProfilesAndStereotypes.html#Generalizing_Stereotype" label="Generalizing Stereotype"></topic>
+ <topic href="resource/users/definingProfilesAndStereotypes.html#Displaying_Stereotype_Options" label="Displaying Stereotype Options"></topic>
</topic>
- <topic href="resource/users/definingProfilesAndStereotypes.html#Displaying_Stereotype_Options" label="Displaying Stereotype Options"></topic>
</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.html
index 2f7f5edfd41..49b34b4260e 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.html
@@ -1,2 +1,2 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Defining_Profiles_and_Stereotypes">Defining Profiles and Stereotypes</h1><p>In UML, Stereotypes should be defined in a UML Profile. A UML Profile is a kind of uml::Package.</p><p>Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, <b>you need to define a Profile in a Papyrus profile resource (file)</b>.</p><p>Defining Stereotypes with Papyrus required the following:</p><ul><li>A <b>profile resource</b> - The resource (file) containing the profile (uml+di+notation files)</li><li>A <b>uml::Profile</b> - The uml element containing the Stereotypes</li><li>The <b>Stereotype</b> - The uml::Stereotype element defining the Stereotype</li></ul><h1 id="Creating_a_Profile_Resource">Creating a Profile Resource</h1><p>To create a new Profile, select File &gt; New &gt; Papyrus Project (Or Papyrus model, if you already have an opened project). When asked for a Diagram Language, Select "Profile":</p><p><img title="New Profile" alt="New Profile" border="0" src="images/newProfile.png"/><br/></p><p><img title="New Profile Diagram" alt="New Profile Diagram" border="0" src="images/newProfileDiagram.png"/><br/></p><p><img title="Profile Editor" alt="Profile Editor" border="0" src="images/profileEditor.png"/><br/></p><p>This creates a Resource containing a uml::Profile as root element.</p><h1 id="Defining_a_Stereotype">Defining a Stereotype</h1><p>Once a profile is created, it is now time to populate this latter with UML extensions, i.e. stereotypes, and their related concepts such as properties, extensions, and metaclasses.</p><h2 id="Creating_a_Stereotype">Creating a Stereotype</h2><p>A stereotype is created as any other UML model elements in Papyrus: select the related tool in the palette of the profile diagram editor, and then click in the place you want to create this element on the background of the diagram. If the palette is not open, just click on the small arrow on the upper right corner of the diagram editor. Papyrus will then ask you to provide a name. Once done, hit the return key and that all.</p><p><img title="Stereotype Palette" alt="Stereotype Palette" border="0" src="images/stereotypePalette.png"/><br/></p><p><img title="Stereotype Name" alt="Stereotype Name" border="0" src="images/stereotypeName.png"/><br/></p><h2 id="Importing_Metaclass">Importing Metaclass</h2><p>Once you have created a stereotype, you need to import the UML2 metaclasses you want to extend. First, you have to select the tool “Import Metaclass� within the palette of the profile diagram editor. Then, let’s click on the profile diagram where you want to drop the imported metaclass. A Papyrus dialog box is then opened in order to ask you to specify which metaclasses you want to import. Select the metaclasses in the left list and either drag and drop these latter in the right list or press the button with arrow directed from left to right and located between both aforementioned lists. Then, let’s press the button “ok� and it is done. The imported metaclasses are then shown in the diagram as illustrated.</p><p><img title="Import Metaclass" alt="Import Metaclass" border="0" src="images/importMetaclassDialog.png"/><br/></p><p><img title="Imported Metaclass" alt="Imported Metaclass" border="0" src="images/importedMetaclass.png"/><br/></p><p>Note: When you import UML2 metaclasses, Papyrus is creating ImportElement model element referent to the metaclasses of the UML2 metamodel itself. Those so-called specific model elements, the ImportElement, are indeed a kind of proxy to the model elements contained in another model, in the UML2 metamodel. If a metaclass has already be imported, you do not need to import it again to use it in another context. You can select the imported meta-class from the model browser and drag and drop this latter on the diagram you want to use it.</p><h2 id="Linking_Stereotype_to_Metaclass_:_Extension_Creation">Linking Stereotype to Metaclass : Extension Creation</h2><p>Once the stereotype is created and the meta-class is imported, you may then model the extension relation from the stereotype to the meta-class as shown in the following figure. The extension relationship is modeled using the extension tool in the profile diagram palette, <img title="Extension" alt="Extension" border="0" src="images/Extension.gif"/>. Within the diagram shown in next figure, both stereotypes «Requirement» and «Refinement» extend respectively both meta-classes Class and Dependency:</p><p><img title="Metaclass Extension" alt="Metaclass Extension" border="0" src="images/metaclassExtension.png"/><br/></p><h2 id="Creating_a_Subprofile">Creating a Subprofile</h2><p>Some profile may be complex due as for example to their scope that may be large. In order to cope with this complexity, it is then possible to decompose a profile into a hierarchy of subprofiles. A subprofile behaves such as a sub-package; it is a container of stereotypes.</p><p>To create a sub profile, select the profile tool in the profile diagram palette (<img title="Profile" alt="Profile" border="0" src="images/Profile.gif"/>) and then click on the profile diagram where you want to create your new profile.</p><p>In the example denoted below, we have created two sub-profiles of the SimplifiedReqML profile in order to gather in one hand the extensions that apply to node elements of the models and in the other hand the extension defined in the DSML for modeling relationships between those nodes:</p><p><img title="Sub Profiles" alt="Sub Profiles" border="0" src="images/subProfiles.png"/><br/></p><h2 id="Generalizing_Stereotype">Generalizing Stereotype</h2><p>When designing a profile, it is possible to reuse existing stereotypes defined in other existing profiles. Stereotypes can indeed be generalized enabling to create child stereotypes that inherit features of one or more generalized stereotype define either locally in the profile or externally other profiles.</p><p>To create a stereotype generalization using the profile diagram editor, let’s draw a generalization relationship using the tool <img title="Generalization" alt="Generalization" border="0" src="images/Generalization.gif"/> from the palette. As any relationship within Papyrus, you need to click first on the source and then on the target of the relationship you want to model.</p><p>In our example, there exists in the UML predefined profile a stereotype extending the dependency relationship in order to introduce the concept of refinement: «Refine». Consequently, we will redesign our sub-profile SRMLRelationship in order our stereotype «Refinement» to be a specialization of this UML stereotype instead of directly extending the UML dependency meta-class.</p><p>As previously mentioned, you may extend a stereotype defined in your profile or a stereotype defined in another external profile. In the latter case, the first thing to do is to import the profile where the stereotype has been defined, as denoted in the following example:</p><p><img title="Import Profile" alt="Import Profile" border="0" src="images/importProfile.png"/><br/></p><p><img title="Select Profile" alt="Select Profile" border="0" src="images/selectProfile.png"/><br/></p><p>Once the profile has been imported, you can select the stereotype you want to generalize from the imported profile (In the Model Explorer) and drop this latter in the diagram of profile description: </p><p><img title="Drop Stereotype" alt="Drop Stereotype" border="0" src="images/dropStereotype.png"/><br/></p><p>Now, let’s draw the generalization relationship from your stereotype (e.g., «Refinement» in the figure below) to the generalized stereotype (e.g., «Refine» in the figure below). </p><p><img title="Generalize Stereotype" alt="Generalize Stereotype" border="0" src="images/generalizeStereotype.png"/><br/></p><p>At this point, your diagram should look like something like the one shown here:</p><p><img title="Result Profile" alt="Result Profile" border="0" src="images/resultProfile.png"/><br/></p><h1 id="Displaying_Stereotype_Options">Displaying Stereotype Options</h1><p>When a stereotype application is shown in a diagram, the by-default way to show it within diagrams is using a string where the name of the stereotype is shown within a pair of French guillemets above or before the name of the model element. However, it is also possible to modify the graphical appearance of the annotated model element using icons. If the graphical representation of the model element is something like a box (including ellipse of the use cases), the icons can be displayed inside and on top of the figures, or it may replace this latter. In that latter case, the property of the element cannot be shown and the name of the model element appears within a label displayed near the icon. If the model element is graphically denoted by a line, the icon is shown in front of the name of the link.</p><p>In order to specify the icons you want to attach to a stereotype, select the stereotype and the tab UML of the property view. In the right-upper corner of the widget named “icons�, press the button <img title="Add" alt="Add" border="0" src="images/Add.gif"/> to add a new icon as shown in step 1. Once done, the dialog box shown at step 2 is open. Within this latter, let’s fill in a name and select an image file using the button <img title="Add" alt="Add" border="0" src="images/Add.gif"/> defining the content of the icon. Next, you have to define the kind value: icon or shape. Using this property, you can choose to associate the selected image either as an icon or as a shape.</p><p><img title="Step 1: Icons for Stereotypes" alt="Step 1: Icons for Stereotypes" border="0" src="images/iconsForStereotype.png"/><br/></p><p><img title="Step 2: Select Icon" alt="Step 2: Select Icon" border="0" src="images/selectIcon.png"/><br/></p><p>It is possible to associate only one shape to a stereotype, but you can associate different icons to a same stereotype. In that latter case, there is a description property that is used to select which one to display. By default, if no expression is defined, the first one is the list is chosen for displaying. The expression has to be on a property of the stereotype which type is an enumeration type.
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Defining_Profiles_and_Stereotypes">Defining Profiles and Stereotypes</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Defining_Profiles_and_Stereotypes">Defining Profiles and Stereotypes</a><ol style="list-style: none;"><li><a href="#Creating_a_Profile_Resource">Creating a Profile Resource</a></li><li><a href="#Defining_a_Stereotype">Defining a Stereotype</a><ol style="list-style: none;"><li><a href="#Creating_a_Stereotype">Creating a Stereotype</a></li><li><a href="#Importing_Metaclass">Importing Metaclass</a></li><li><a href="#Linking_Stereotype_to_Metaclass_:_Extension_Creation">Linking Stereotype to Metaclass : Extension Creation</a></li></ol></li><li><a href="#Creating_a_Subprofile">Creating a Subprofile</a></li><li><a href="#Generalizing_Stereotype">Generalizing Stereotype</a></li><li><a href="#Displaying_Stereotype_Options">Displaying Stereotype Options</a></li></ol></li></ol><p>In UML, Stereotypes should be defined in a UML Profile. A UML Profile is a kind of uml::Package.</p><p>Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, <b>you need to define a Profile in a Papyrus profile resource (file)</b>.</p><p>Defining Stereotypes with Papyrus required the following:</p><ul><li>A <b>profile resource</b> - The resource (file) containing the profile (uml+di+notation files)</li><li>A <b>uml::Profile</b> - The uml element containing the Stereotypes</li><li>The <b>Stereotype</b> - The uml::Stereotype element defining the Stereotype</li></ul><h2 id="Creating_a_Profile_Resource">Creating a Profile Resource</h2><p>To create a new Profile, select File &gt; New &gt; Papyrus Project (Or Papyrus model, if you already have an opened project). When asked for a Diagram Language, Select "Profile":</p><p><img title="New Profile" alt="New Profile" border="0" src="images/newProfile.png"/><br/></p><p><img title="New Profile Diagram" alt="New Profile Diagram" border="0" src="images/newProfileDiagram.png"/><br/></p><p><img title="Profile Editor" alt="Profile Editor" border="0" src="images/profileEditor.png"/><br/></p><p>This creates a Resource containing a uml::Profile as root element.</p><h2 id="Defining_a_Stereotype">Defining a Stereotype</h2><p>Once a profile is created, it is now time to populate this latter with UML extensions, i.e. stereotypes, and their related concepts such as properties, extensions, and metaclasses.</p><h3 id="Creating_a_Stereotype">Creating a Stereotype</h3><p>A stereotype is created as any other UML model elements in Papyrus: select the related tool in the palette of the profile diagram editor, and then click in the place you want to create this element on the background of the diagram. If the palette is not open, just click on the small arrow on the upper right corner of the diagram editor. Papyrus will then ask you to provide a name. Once done, hit the return key and that all.</p><p><img title="Stereotype Palette" alt="Stereotype Palette" border="0" src="images/stereotypePalette.png"/><br/></p><p><img title="Stereotype Name" alt="Stereotype Name" border="0" src="images/stereotypeName.png"/><br/></p><h3 id="Importing_Metaclass">Importing Metaclass</h3><p>Once you have created a stereotype, you need to import the UML2 metaclasses you want to extend. First, you have to select the tool “Import Metaclass� within the palette of the profile diagram editor. Then, let’s click on the profile diagram where you want to drop the imported metaclass. A Papyrus dialog box is then opened in order to ask you to specify which metaclasses you want to import. Select the metaclasses in the left list and either drag and drop these latter in the right list or press the button with arrow directed from left to right and located between both aforementioned lists. Then, let’s press the button “ok� and it is done. The imported metaclasses are then shown in the diagram as illustrated.</p><p><img title="Import Metaclass" alt="Import Metaclass" border="0" src="images/importMetaclassDialog.png"/><br/></p><p><img title="Imported Metaclass" alt="Imported Metaclass" border="0" src="images/importedMetaclass.png"/><br/></p><p>Note: When you import UML2 metaclasses, Papyrus is creating ImportElement model element referent to the metaclasses of the UML2 metamodel itself. Those so-called specific model elements, the ImportElement, are indeed a kind of proxy to the model elements contained in another model, in the UML2 metamodel. If a metaclass has already be imported, you do not need to import it again to use it in another context. You can select the imported meta-class from the model browser and drag and drop this latter on the diagram you want to use it.</p><h3 id="Linking_Stereotype_to_Metaclass_:_Extension_Creation">Linking Stereotype to Metaclass : Extension Creation</h3><p>Once the stereotype is created and the meta-class is imported, you may then model the extension relation from the stereotype to the meta-class as shown in the following figure. The extension relationship is modeled using the extension tool in the profile diagram palette, <img title="Extension" alt="Extension" border="0" src="images/Extension.gif"/>. Within the diagram shown in next figure, both stereotypes «Requirement» and «Refinement» extend respectively both meta-classes Class and Dependency:</p><p><img title="Metaclass Extension" alt="Metaclass Extension" border="0" src="images/metaclassExtension.png"/><br/></p><h2 id="Creating_a_Subprofile">Creating a Subprofile</h2><p>Some profile may be complex due as for example to their scope that may be large. In order to cope with this complexity, it is then possible to decompose a profile into a hierarchy of subprofiles. A subprofile behaves such as a sub-package; it is a container of stereotypes.</p><p>To create a sub profile, select the profile tool in the profile diagram palette (<img title="Profile" alt="Profile" border="0" src="images/Profile.gif"/>) and then click on the profile diagram where you want to create your new profile.</p><p>In the example denoted below, we have created two sub-profiles of the SimplifiedReqML profile in order to gather in one hand the extensions that apply to node elements of the models and in the other hand the extension defined in the DSML for modeling relationships between those nodes:</p><p><img title="Sub Profiles" alt="Sub Profiles" border="0" src="images/subProfiles.png"/><br/></p><h2 id="Generalizing_Stereotype">Generalizing Stereotype</h2><p>When designing a profile, it is possible to reuse existing stereotypes defined in other existing profiles. Stereotypes can indeed be generalized enabling to create child stereotypes that inherit features of one or more generalized stereotype define either locally in the profile or externally other profiles.</p><p>To create a stereotype generalization using the profile diagram editor, let’s draw a generalization relationship using the tool <img title="Generalization" alt="Generalization" border="0" src="images/Generalization.gif"/> from the palette. As any relationship within Papyrus, you need to click first on the source and then on the target of the relationship you want to model.</p><p>In our example, there exists in the UML predefined profile a stereotype extending the dependency relationship in order to introduce the concept of refinement: «Refine». Consequently, we will redesign our sub-profile SRMLRelationship in order our stereotype «Refinement» to be a specialization of this UML stereotype instead of directly extending the UML dependency meta-class.</p><p>As previously mentioned, you may extend a stereotype defined in your profile or a stereotype defined in another external profile. In the latter case, the first thing to do is to import the profile where the stereotype has been defined, as denoted in the following example:</p><p><img title="Import Profile" alt="Import Profile" border="0" src="images/importProfile.png"/><br/></p><p><img title="Select Profile" alt="Select Profile" border="0" src="images/selectProfile.png"/><br/></p><p>Once the profile has been imported, you can select the stereotype you want to generalize from the imported profile (In the Model Explorer) and drop this latter in the diagram of profile description: </p><p><img title="Drop Stereotype" alt="Drop Stereotype" border="0" src="images/dropStereotype.png"/><br/></p><p>Now, let’s draw the generalization relationship from your stereotype (e.g., «Refinement» in the figure below) to the generalized stereotype (e.g., «Refine» in the figure below). </p><p><img title="Generalize Stereotype" alt="Generalize Stereotype" border="0" src="images/generalizeStereotype.png"/><br/></p><p>At this point, your diagram should look like something like the one shown here:</p><p><img title="Result Profile" alt="Result Profile" border="0" src="images/resultProfile.png"/><br/></p><h2 id="Displaying_Stereotype_Options">Displaying Stereotype Options</h2><p>When a stereotype application is shown in a diagram, the by-default way to show it within diagrams is using a string where the name of the stereotype is shown within a pair of French guillemets above or before the name of the model element. However, it is also possible to modify the graphical appearance of the annotated model element using icons. If the graphical representation of the model element is something like a box (including ellipse of the use cases), the icons can be displayed inside and on top of the figures, or it may replace this latter. In that latter case, the property of the element cannot be shown and the name of the model element appears within a label displayed near the icon. If the model element is graphically denoted by a line, the icon is shown in front of the name of the link.</p><p>In order to specify the icons you want to attach to a stereotype, select the stereotype and the tab UML of the property view. In the right-upper corner of the widget named “icons�, press the button <img title="Add" alt="Add" border="0" src="images/Add.gif"/> to add a new icon as shown in step 1. Once done, the dialog box shown at step 2 is open. Within this latter, let’s fill in a name and select an image file using the button <img title="Add" alt="Add" border="0" src="images/Add.gif"/> defining the content of the icon. Next, you have to define the kind value: icon or shape. Using this property, you can choose to associate the selected image either as an icon or as a shape.</p><p><img title="Step 1: Icons for Stereotypes" alt="Step 1: Icons for Stereotypes" border="0" src="images/iconsForStereotype.png"/><br/></p><p><img title="Step 2: Select Icon" alt="Step 2: Select Icon" border="0" src="images/selectIcon.png"/><br/></p><p>It is possible to associate only one shape to a stereotype, but you can associate different icons to a same stereotype. In that latter case, there is a description property that is used to select which one to display. By default, if no expression is defined, the first one is the list is chosen for displaying. The expression has to be on a property of the stereotype which type is an enumeration type.
In our example, we can set different icons to the stereotype «Requirement» depending on the value of its importance property. This latter is indeed typed by the ImportanceLevel enumeration which values may be High, Medium of Low (figure shown below). For this example, we will then associate the three following images <img title="High" alt="High" border="0" src="images/high.png"/>, <img title="Medium" alt="Medium" border="0" src="images/medium.png"/>, and <img title="Low" alt="Low" border="0" src="images/low.png"/>, to the stereotype «Requirement» and their related expression will be respectively importance=High (e.g. figure shown below), importance=Medium and importance=Low.</p><p><img title="Many Stereotype Icons" alt="Many Stereotype Icons" border="0" src="images/manyStereotypeIcons.png"/><br/></p><p><img title="Icon Kind" alt="Icon Kind" border="0" src="images/iconKind.png"/><br/></p><p><img title="Icon Expressions" alt="Icon Expressions" border="0" src="images/iconExpressions.png"/><br/></p><p><img title="High Req. Icon" alt="High Req. Icon" border="0" src="images/highReqIcon.png"/><br/></p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.mediawiki
index a417ad5fff1..bbd808112b5 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/definingProfilesAndStereotypes.mediawiki
@@ -1,4 +1,7 @@
= Defining Profiles and Stereotypes =
+'''Contents'''
+__TOC__
+
In UML, Stereotypes should be defined in a UML Profile. A UML Profile is a kind of uml::Package.
@@ -10,7 +13,7 @@ Defining Stereotypes with Papyrus required the following:
* The '''Stereotype''' - The uml::Stereotype element defining the Stereotype
-= Creating a Profile Resource =
+== Creating a Profile Resource ==
To create a new Profile, select File > New > Papyrus Project (Or Papyrus model, if you already have an opened project). When asked for a Diagram Language, Select "Profile":
@@ -22,11 +25,11 @@ To create a new Profile, select File > New > Papyrus Project (Or Papyrus model,
This creates a Resource containing a uml::Profile as root element.
-= Defining a Stereotype =
+== Defining a Stereotype ==
Once a profile is created, it is now time to populate this latter with UML extensions, i.e. stereotypes, and their related concepts such as properties, extensions, and metaclasses.
-== Creating a Stereotype ==
+=== Creating a Stereotype ===
A stereotype is created as any other UML model elements in Papyrus: select the related tool in the palette of the profile diagram editor, and then click in the place you want to create this element on the background of the diagram. If the palette is not open, just click on the small arrow on the upper right corner of the diagram editor. Papyrus will then ask you to provide a name. Once done, hit the return key and that all.
@@ -34,7 +37,7 @@ A stereotype is created as any other UML model elements in Papyrus: select the r
[[Image:images/stereotypeName.png|Stereotype Name]]<br>
-== Importing Metaclass ==
+=== Importing Metaclass ===
Once you have created a stereotype, you need to import the UML2 metaclasses you want to extend. First, you have to select the tool “Import Metaclass� within the palette of the profile diagram editor. Then, let’s click on the profile diagram where you want to drop the imported metaclass. A Papyrus dialog box is then opened in order to ask you to specify which metaclasses you want to import. Select the metaclasses in the left list and either drag and drop these latter in the right list or press the button with arrow directed from left to right and located between both aforementioned lists. Then, let’s press the button “ok� and it is done. The imported metaclasses are then shown in the diagram as illustrated.
@@ -44,13 +47,13 @@ Once you have created a stereotype, you need to import the UML2 metaclasses you
Note: When you import UML2 metaclasses, Papyrus is creating ImportElement model element referent to the metaclasses of the UML2 metamodel itself. Those so-called specific model elements, the ImportElement, are indeed a kind of proxy to the model elements contained in another model, in the UML2 metamodel. If a metaclass has already be imported, you do not need to import it again to use it in another context. You can select the imported meta-class from the model browser and drag and drop this latter on the diagram you want to use it.
-== Linking Stereotype to Metaclass : Extension Creation ==
+=== Linking Stereotype to Metaclass : Extension Creation ===
Once the stereotype is created and the meta-class is imported, you may then model the extension relation from the stereotype to the meta-class as shown in the following figure. The extension relationship is modeled using the extension tool in the profile diagram palette, [[Image:images/Extension.gif|Extension]]. Within the diagram shown in next figure, both stereotypes «Requirement» and «Refinement» extend respectively both meta-classes Class and Dependency:
[[Image:images/metaclassExtension.png|Metaclass Extension]]<br>
-= Creating a Subprofile =
+== Creating a Subprofile ==
Some profile may be complex due as for example to their scope that may be large. In order to cope with this complexity, it is then possible to decompose a profile into a hierarchy of subprofiles. A subprofile behaves such as a sub-package; it is a container of stereotypes.
@@ -60,7 +63,7 @@ In the example denoted below, we have created two sub-profiles of the Simplified
[[Image:images/subProfiles.png|Sub Profiles]]<br>
-= Generalizing Stereotype =
+== Generalizing Stereotype ==
When designing a profile, it is possible to reuse existing stereotypes defined in other existing profiles. Stereotypes can indeed be generalized enabling to create child stereotypes that inherit features of one or more generalized stereotype define either locally in the profile or externally other profiles.
@@ -86,7 +89,7 @@ At this point, your diagram should look like something like the one shown here:
[[Image:images/resultProfile.png|Result Profile]]<br>
-= Displaying Stereotype Options =
+== Displaying Stereotype Options ==
When a stereotype application is shown in a diagram, the by-default way to show it within diagrams is using a string where the name of the stereotype is shown within a pair of French guillemets above or before the name of the model element. However, it is also possible to modify the graphical appearance of the annotated model element using icons. If the graphical representation of the model element is something like a box (including ellipse of the use cases), the icons can be displayed inside and on top of the figures, or it may replace this latter. In that latter case, the property of the element cannot be shown and the name of the model element appears within a label displayed near the icon. If the model element is graphically denoted by a line, the icon is shown in front of the name of the link.
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture-toc.xml
index 5126390dafc..3b127e17ba8 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture-toc.xml
@@ -1,6 +1,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/users/papyrusProfileArchitecture.html" label="papyrusProfileArchitecture">
- <topic href="resource/users/papyrusProfileArchitecture.html" label="Papyrus Profile Architecture"></topic>
- <topic href="resource/users/papyrusProfileArchitecture.html#Profile_and_Stereotype_Definitions_Architecture" label="Profile and Stereotype Definitions Architecture"></topic>
- <topic href="resource/users/papyrusProfileArchitecture.html#Profile_and_Stereotype_applications_Architecture" label="Profile and Stereotype applications Architecture"></topic>
+ <topic href="resource/users/papyrusProfileArchitecture.html" label="Papyrus Profile Architecture">
+ <topic href="resource/users/papyrusProfileArchitecture.html#Profile_and_Stereotype_Definitions_Architecture" label="Profile and Stereotype Definitions Architecture"></topic>
+ <topic href="resource/users/papyrusProfileArchitecture.html#Profile_and_Stereotype_applications_Architecture" label="Profile and Stereotype applications Architecture"></topic>
+ </topic>
</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.html
index bbfb5510cc2..14e15bc6024 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.html
@@ -1,2 +1,2 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Papyrus_Profile_Architecture">Papyrus Profile Architecture</h1><p>This section describes the architecture used to define uml Profiles in Papyrus. </p><p>Papyrus Profiles and Stereotypes implementation is made of two different parts:</p><ul><li>The Profile and Stereotype <b>definitions</b> - This part is used to handle the stereotype and profile definitions.</li><li>The Profile and Stereotype <b>applications</b> - This part is used to apply an existing stereotype or profile to an UML element.</li></ul><h1 id="Profile_and_Stereotype_Definitions_Architecture">Profile and Stereotype Definitions Architecture</h1><p>Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, <b>you need to define a Profile in a 'Papyrus profile resource</b>' (i.e. a file).</p><p>The definitions of Profiles and Stereoptypes is made of two parts: the UML definitions, and the corresponding dynamic model. User define profiles and stereotypes in UML. The corresponding dynamic model is computed by Papyrus when the resource is saved.</p><p>UML definition of profile follows UML standard: Stereotypes must be defined in a uml::Profile.</p><p>The dynamic model is defined by Papyrus using the EMF/UML framework. This dynamic model is associated to a version number. The version number is incremented each time the dynamic model is re-created, so each time the profile resource is saved.</p><h1 id="Profile_and_Stereotype_applications_Architecture">Profile and Stereotype applications Architecture</h1><p>When Profile or a Stereotype is applied to an UML element, this create a Application object referencing both the uml element, and the profile or stereotype definition.
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Papyrus_Profile_Architecture">Papyrus Profile Architecture</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Papyrus_Profile_Architecture">Papyrus Profile Architecture</a><ol style="list-style: none;"><li><a href="#Profile_and_Stereotype_Definitions_Architecture">Profile and Stereotype Definitions Architecture</a></li><li><a href="#Profile_and_Stereotype_applications_Architecture">Profile and Stereotype applications Architecture</a></li></ol></li></ol><p>This section describes the architecture used to define uml Profiles in Papyrus. </p><p>Papyrus Profiles and Stereotypes implementation is made of two different parts:</p><ul><li>The Profile and Stereotype <b>definitions</b> - This part is used to handle the stereotype and profile definitions.</li><li>The Profile and Stereotype <b>applications</b> - This part is used to apply an existing stereotype or profile to an UML element.</li></ul><h2 id="Profile_and_Stereotype_Definitions_Architecture">Profile and Stereotype Definitions Architecture</h2><p>Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, <b>you need to define a Profile in a 'Papyrus profile resource</b>' (i.e. a file).</p><p>The definitions of Profiles and Stereoptypes is made of two parts: the UML definitions, and the corresponding dynamic model. User define profiles and stereotypes in UML. The corresponding dynamic model is computed by Papyrus when the resource is saved.</p><p>UML definition of profile follows UML standard: Stereotypes must be defined in a uml::Profile.</p><p>The dynamic model is defined by Papyrus using the EMF/UML framework. This dynamic model is associated to a version number. The version number is incremented each time the dynamic model is re-created, so each time the profile resource is saved.</p><h2 id="Profile_and_Stereotype_applications_Architecture">Profile and Stereotype applications Architecture</h2><p>When Profile or a Stereotype is applied to an UML element, this create a Application object referencing both the uml element, and the profile or stereotype definition.
Thus, an uml element is not directly linked to an Application object.</p><p>Application objects are normally stored in the resource file containing the uml element they reference. They are not stored inside the UML model. Rather, they are stored alongside of the uml model. </p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.mediawiki
index 052af4cb72a..05ab06fb929 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileArchitecture.mediawiki
@@ -1,5 +1,7 @@
-
= Papyrus Profile Architecture =
+'''Contents'''
+__TOC__
+
This section describes the architecture used to define uml Profiles in Papyrus.
@@ -8,7 +10,7 @@ Papyrus Profiles and Stereotypes implementation is made of two different parts:
* The Profile and Stereotype '''applications''' - This part is used to apply an existing stereotype or profile to an UML element.
-= Profile and Stereotype Definitions Architecture =
+== Profile and Stereotype Definitions Architecture ==
Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, '''you need to define a Profile in a 'Papyrus profile resource'''' (i.e. a file).
@@ -18,7 +20,7 @@ UML definition of profile follows UML standard: Stereotypes must be defined in a
The dynamic model is defined by Papyrus using the EMF/UML framework. This dynamic model is associated to a version number. The version number is incremented each time the dynamic model is re-created, so each time the profile resource is saved.
-= Profile and Stereotype applications Architecture =
+== Profile and Stereotype applications Architecture ==
When Profile or a Stereotype is applied to an UML element, this create a Application object referencing both the uml element, and the profile or stereotype definition.
Thus, an uml element is not directly linked to an Application object.
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.html
index 7e6de282694..78688f35ac2 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.html
@@ -1,4 +1 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Papyrus_Profile_Limitations">Papyrus Profile Limitations</h1><h2 id="Cyclic_Profile_Definitions">Cyclic Profile Definitions</h2><p>Due to the way the Dynamic ECore model is built, Papyrus does not support Definition of Profiles with cyclic references.
-See Bug 451613: ClassCastException when updating hierarchical profile with datatype
-<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=451613">https://bugs.eclipse.org/bugs/show_bug.cgi?id=451613</a></p><pre>[
-</pre></body></html> \ No newline at end of file
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Papyrus_Profile_Limitations">Papyrus Profile Limitations</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Papyrus_Profile_Limitations">Papyrus Profile Limitations</a><ol style="list-style: none;"><li><a href="#Cyclic_Profile_Definitions">Cyclic Profile Definitions</a></li></ol></li></ol><h2 id="Cyclic_Profile_Definitions">Cyclic Profile Definitions</h2><p>Due to the way the Dynamic ECore model is built, Papyrus does not support Definition of Profiles with cyclic references.</p><p>See <a href="/wiki/https://bugs.eclipse.org/bugs/show_bug.cgi?id=451613" title="https://bugs.eclipse.org/bugs/show_bug.cgi?id=451613">Bug 451613</a>: ClassCastException when updating hierarchical profile with datatype</p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.mediawiki
index cc8d398af5e..3e94895c8c2 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/papyrusProfileLimitations.mediawiki
@@ -1,4 +1,7 @@
= Papyrus Profile Limitations =
+'''Contents'''
+__TOC__
+
== Cyclic Profile Definitions ==
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/profile-main-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/profile-main-toc.xml
index 78eb905ee06..cbcc0662ee4 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/profile-main-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/profile-main-toc.xml
@@ -2,25 +2,13 @@
<toc label="Papyrus Profiles" link_to="../org.eclipse.papyrus.infra.doc/toc.xml#PapyrusDocUser">
<topic label="Using UML Profiles">
<anchor id="profiles-start"/>
- <topic label="What is a UML Profile">
<link toc="resource/users/whatIsAUmlProfile-toc.xml"/>
- </topic>
- <topic label="Papyrus Profiles Architecture">
<link toc="resource/users/papyrusProfileArchitecture-toc.xml" />
- </topic>
- <topic label="Defining Profiles And Stereotypes">
<link toc="resource/users/definingProfilesAndStereotypes-toc.xml" />
- </topic>
- <topic label="Using Profiles And Stereotypes">
- <link toc="resource/users/usingProfilesAndStereotypes-toc.xml" />
- </topic>
- <topic label="Simplified Usage of Profiles and Stereotypes">
- <link toc="resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml" />
- </topic>
- <anchor id="profiles" />
- <topic label="Papyrus Profiles Limitations">
+ <link toc="resource/users/usingProfilesAndStereotypes-toc.xml" />
+ <link toc="resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml" />
+ <anchor id="profiles" />
<link toc="resource/users/papyrusProfileLimitations-toc.xml" />
- </topic>
<anchor id="profiles-end" />
</topic>
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml
index ebab3dfd1f5..a75bb434755 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes-toc.xml
@@ -1,6 +1,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/users/simplifiedUsageOfProfilesAndStereotypes.html" label="simplifiedUsageOfProfilesAndStereotypes">
- <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html" label="Simplified Usage of Profiles and Stereotypes"></topic>
- <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html#Creating_Profile_and_Stereotype" label="Creating Profile and Stereotype"></topic>
- <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html#Updating_Stereotype" label="Updating Stereotype"></topic>
+ <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html" label="Simplified Usage of Profiles and Stereotypes">
+ <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html#Creating_Profile_and_Stereotype" label="Creating Profile and Stereotype"></topic>
+ <topic href="resource/users/simplifiedUsageOfProfilesAndStereotypes.html#Updating_Stereotype" label="Updating Stereotype"></topic>
+ </topic>
</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.html
index 55a1553eae4..5f224fb02d7 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.html
@@ -1,6 +1,6 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Simplified_Usage_of_Profiles_and_Stereotypes">Simplified Usage of Profiles and Stereotypes</h1><p>Papyrus provides a simplified way to create, apply and modify Profiles and Stereotypes.
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Simplified_Usage_of_Profiles_and_Stereotypes">Simplified Usage of Profiles and Stereotypes</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Simplified_Usage_of_Profiles_and_Stereotypes">Simplified Usage of Profiles and Stereotypes</a><ol style="list-style: none;"><li><a href="#Creating_Profile_and_Stereotype">Creating Profile and Stereotype</a></li><li><a href="#Updating_Stereotype">Updating Stereotype</a></li></ol></li></ol><p>Papyrus provides a simplified way to create, apply and modify Profiles and Stereotypes.
We call it 'simplified' comparatively to the way where one should first define Profile and Stereotypes, then apply the Profile, and finally apply and modify the Stereotype.</p><p>The simplified usage propose one single Dialog used to create a Profile and a Stereotype, then apply both to the selected element, and all in no more than two clicks !
-Also, the same Dialog can be used to update the Stereotype definition, or the application values.</p><h1 id="Creating_Profile_and_Stereotype">Creating Profile and Stereotype</h1><p>Select the UML element to apply the profile, right click -&gt; Profile -&gt; Update Profile ...<br/>
-The following Dialog appears:</p><p><img title="Profile Easy Usage Dialog" alt="Profile Easy Usage Dialog" border="0" src="images/profile-DialogExplained.png"/><br/></p><p>In <b>Qualified Name</b>, type the Profile name and the Stereotype name separated by '::'.</p><p>The <b>metaclass</b> should already be selected, based on the metaclass of the currently selected UML element. You can add metaclasses if you whish.</p><p>In <b>Properties</b>, add properties to your profile: click '+', then set the name, select a type, and set a value.</p><p>Clicking '<b>OK</b>' will do the following:</p><ul><li><b>Create the Profile</b> if needed</li><li><b>Create the Stereotype</b> if needed</li><li><b>Create new properties</b></li><li><b>Apply the Profile</b>, if needed, to the uml::Package containing the selected uml element.</li><li><b>Apply the Stereotype</b>, if needed, to the selected uml element.</li><li><b>Set values to the applied stereotype</b>, if some values are set to the properties.</li></ul><h1 id="Updating_Stereotype">Updating Stereotype</h1><p>Select the UML element applying the profile to update, right click -&gt; Profile -&gt; Update Profile ...<br/>
+Also, the same Dialog can be used to update the Stereotype definition, or the application values.</p><h2 id="Creating_Profile_and_Stereotype">Creating Profile and Stereotype</h2><p>Select the UML element to apply the profile, right click -&gt; Profile -&gt; Update Profile ...<br/>
+The following Dialog appears:</p><p><img title="Profile Easy Usage Dialog" alt="Profile Easy Usage Dialog" border="0" src="images/profile-DialogExplained.png"/><br/></p><p>In <b>Qualified Name</b>, type the Profile name and the Stereotype name separated by '::'.</p><p>The <b>metaclass</b> should already be selected, based on the metaclass of the currently selected UML element. You can add metaclasses if you whish.</p><p>In <b>Properties</b>, add properties to your profile: click '+', then set the name, select a type, and set a value.</p><p>Clicking '<b>OK</b>' will do the following:</p><ul><li><b>Create the Profile</b> if needed</li><li><b>Create the Stereotype</b> if needed</li><li><b>Create new properties</b></li><li><b>Apply the Profile</b>, if needed, to the uml::Package containing the selected uml element.</li><li><b>Apply the Stereotype</b>, if needed, to the selected uml element.</li><li><b>Set values to the applied stereotype</b>, if some values are set to the properties.</li></ul><h2 id="Updating_Stereotype">Updating Stereotype</h2><p>Select the UML element applying the profile to update, right click -&gt; Profile -&gt; Update Profile ...<br/>
In <b>Qualified Name</b>, type the beginning of the name of the Stereotype to update. The Content Assist should propose Stereotypes matching your input. Select your Stereotype.
The Dialog should show the actual values of the Stereotype. You can change the Properties and their values.</p><p>If you change the name of the Stereotype or the Profile, this will create a new Stereotype.</p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.mediawiki
index 6a4cb437ced..3ac1e22f5fc 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/simplifiedUsageOfProfilesAndStereotypes.mediawiki
@@ -1,5 +1,5 @@
= Simplified Usage of Profiles and Stereotypes =
-
+'''Contents'''
__TOC__
Papyrus provides a simplified way to create, apply and modify Profiles and Stereotypes.
@@ -8,7 +8,7 @@ We call it 'simplified' comparatively to the way where one should first define P
The simplified usage propose one single Dialog used to create a Profile and a Stereotype, then apply both to the selected element, and all in no more than two clicks !
Also, the same Dialog can be used to update the Stereotype definition, or the application values.
-= Creating Profile and Stereotype =
+== Creating Profile and Stereotype ==
Select the UML element to apply the profile, right click -> Profile -> Update Profile ...<br>
The following Dialog appears:
@@ -28,7 +28,7 @@ Clicking ''''OK'''' will do the following:
* '''Apply the Stereotype''', if needed, to the selected uml element.
* '''Set values to the applied stereotype''', if some values are set to the properties.
-= Updating Stereotype =
+== Updating Stereotype ==
Select the UML element applying the profile to update, right click -> Profile -> Update Profile ...<br>
In '''Qualified Name''', type the beginning of the name of the Stereotype to update. The Content Assist should propose Stereotypes matching your input. Select your Stereotype.
The Dialog should show the actual values of the Stereotype. You can change the Properties and their values.
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes-toc.xml
index 4654a82fb83..5211d50f0ad 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes-toc.xml
@@ -1,8 +1,9 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/users/usingProfilesAndStereotypes.html" label="usingProfilesAndStereotypes">
- <topic href="resource/users/usingProfilesAndStereotypes.html" label="Using Profiles and Stereotypes"></topic>
- <topic href="resource/users/usingProfilesAndStereotypes.html#Applying_a_Profile" label="Applying a Profile"></topic>
- <topic href="resource/users/usingProfilesAndStereotypes.html#Applying_a_Stereotype" label="Applying a Stereotype"></topic>
- <topic href="resource/users/usingProfilesAndStereotypes.html#Setting_values_to_stereotype.27_properties" label="Setting values to stereotype' properties"></topic>
- <topic href="resource/users/usingProfilesAndStereotypes.html#Display_options_of_a_stereotype_application" label="Display options of a stereotype application"></topic>
+ <topic href="resource/users/usingProfilesAndStereotypes.html" label="Using Profiles and Stereotypes">
+ <topic href="resource/users/usingProfilesAndStereotypes.html#Applying_a_Profile" label="Applying a Profile"></topic>
+ <topic href="resource/users/usingProfilesAndStereotypes.html#Applying_a_Stereotype" label="Applying a Stereotype"></topic>
+ <topic href="resource/users/usingProfilesAndStereotypes.html#Setting_values_to_stereotype.27_properties" label="Setting values to stereotype' properties"></topic>
+ <topic href="resource/users/usingProfilesAndStereotypes.html#Display_options_of_a_stereotype_application" label="Display options of a stereotype application"></topic>
+ </topic>
</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.html
index b6136eb4df4..edef6cdb52d 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.html
@@ -1 +1 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Using_Profiles_and_Stereotypes">Using Profiles and Stereotypes</h1><p>Once a profile has been designed and defined as previously explained, it now times to use it. The first step to process is to apply the profile on your model or a part of the model. This is the purpose of the next section to explain this first step. Then, we will explain how to use the applied profile and mainly how to use its extensions, i.e. its stereotypes.</p><h1 id="Applying_a_Profile">Applying a Profile</h1><p>To apply a profile, first you need to open your model.</p><p>The first step consists in selecting the part of the model you want to apply the profile on. Profiles can be applied either on Models or Packages. Then to apply the profile on this part, let’s select the profile tab in the property view, and press the <img title="Apply Profile" alt="Apply Profile" border="0" src="images/Add.gif"/> button.</p><p><img title="Select Package" alt="Select Package" border="0" src="images/applyProfile.png"/><br/></p><p><img title="Profile Tab" alt="Profile Tab" border="0" src="images/applyProfile2.png"/><br/></p><p><img title="Apply Profile" alt="Apply Profile" border="0" src="images/applyProfile3.png"/><br/></p><p>Then, Papyrus will ask you firstly to choose the profile to apply from your workspace, and secondly to choose which part of the selected profile you want to apply. It is indeed possible that your profile may be composed of sub-profiles as explained in the previous chapter. It is then possible to apply partially a profile by applying one or more of its sub-profiles.</p><p><img title="Select Profile" alt="Select Profile" border="0" src="images/selectProfileModel.png"/><br/></p><p><img title="Select Profiles" alt="Select Profiles" border="0" src="images/selectProfiles.png"/><br/></p><p>Your model should now look like this:</p><p><img title="Applied Profiles" alt="Applied Profiles" border="0" src="images/appliedProfiles.png"/><br/></p><h1 id="Applying_a_Stereotype">Applying a Stereotype</h1><p>Once the profile is applied on your model, its extensions, i.e. stereotypes, are available in the modeling tool and can be used in your model to annotate uml elements.</p><p>To annotate a model element, you first need to select it either through the model explorer or in one open diagram. Then, select the tab named “profile” in the properties view, and add your stereotype using the <img title="Apply Profile" alt="Apply Profile" border="0" src="images/Add.gif"/> button of the widget named “Applied stereotypes”</p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype2.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype3.png"/><br/></p><p>A dialog box enables you to select the stereotype(s) you want to apply (left part of the dialog box) and using the <img title="Add" alt="Add" border="0" src="images/arrow_right.gif"/> button located in the middle of the dialog box enables to define which stereotypes have to be applied. The list located on the right of the dialog box denotes the list of applied stereotype. If you want to unapply stereotypes, you can select those latter from the right list and use the <img title="Remove" alt="Remove" border="0" src="images/arrow_left.gif"/> button to unapply them.</p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype4.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype5.png"/><br/></p><p>At this point, your Papyrus should look like this:</p><p><img title="Applied Stereotype" alt="Applied Stereotype" border="0" src="images/appliedStereotype.png"/><br/></p><h1 id="Setting_values_to_stereotype.27_properties">Setting values to stereotype' properties</h1><p>As already mentioned, Stereotypes may have properties. Consequently, when applying a stereotype to a model element, it may be necessary to set the values of those properties. For that, you will go to the profile tab of the properties view and then you can unfold the stereotype application as shown in following figure:</p><p><img title="Stereotype Properties" alt="Stereotype Properties" border="0" src="images/stereotypeProperties.png"/><br/></p><p>Once you have selected the property to edit, its value (if already set, as for example if there is a default value defined in the profile for the property) appear in the right part of the property view. If the property has not yet been valued, you can add a value by using the <img title="Add" alt="Add" border="0" src="images/add.gif"/> button located on the top right of the widget named “Properties values”. If there is a value, double-click on the value to edit this latter.</p><p><img title="Edit Property" alt="Edit Property" border="0" src="images/stereotypePropertyEdition.png"/><br/></p><p>Ps: If you want to delete a value set to property, let’s use the <img title="Delete" alt="Delete" border="0" src="images/Delete.gif"/> button located on the top right of the widget named “Properties values”.</p><h1 id="Display_options_of_a_stereotype_application">Display options of a stereotype application</h1><p>Stereotype applications may be graphically rendered under different forms, either textually, or using specific icons. Details to specify those icons associated to a stereotype are given in previous chapters (See <a href="/wiki/definingProfilesAndStereotypes#Stereotype_display_options" title="definingProfilesAndStereotypes#Stereotype display options">definingProfilesAndStereotypes#Stereotype display options</a>).</p><p>Let’s remind that in UML, you can apply several stereotypes on a same model element. In Papyrus, it is then possible to select the ones you want to show for each diagram. For showing or hiding a stereotype application, you have to select the tab “appearance” in the properties view. As shown in the next figure, there is one widget named “Applied stereotypes” that denotes the list of stereotypes applied on the current selected model element. On the example illustrated within this figure, you can see on the upper corner of the icon placed in front of the stereotype name “Requirement” an overlay denoting that this stereotype application is shown.</p><p><img title="Stereotype Display" alt="Stereotype Display" border="0" src="images/stereotypeDisplayOptions.png"/><br/></p><p><i>Warning: Let’s notice that the appearance tab of the property view is only visible if you select a model element from one of the open diagram. In other case, if you select the model element from the model explorer, the concept of graphical does not make sense because the information specified within this view are only related to graphical information.</i></p><p><i>Consequently, the values set to the appearance properties of model element are valid only in the context of the diagram where the element is selected. It is then possible to show a stereotype on a diagram and hide it in another diagram depending on the concerns of the view realized by the diagram.</i></p><p>To hide or show stereotype applications, you have to select them from the list of applied stereotypes available within the appearance tab and then either press the <img title="Display qualified name" alt="Display qualified name" border="0" src="images/ConsoleViewQN.gif"/> button or <img title="Display" alt="Display" border="0" src="images/change_display.gif"/>.</p><p>The former is to be used if you want to display the stereotype application with its qualified name, and the latter is to be used if you want to show it without qualified name. Using one of both depends if you may have ambiguities or not on the origin of the stereotype when as for example applying several profiles defining similar stereotypes. As for example, both profiles, MARTE and SysML, define a stereotype named «FlowPort».</p><p>In addition, there are three other widgets dedicated to configure the stereotype display options:</p><ul><li>“Stereotype display” is an enumeration which values may be Text, Icon, Text and Icon or Shape. In UML, as explained previously, a stereotype may be denoted either as a string between a pair of French guillemets (e.g., «Requirement»), or as an icon embedded in the figure or as a shape with a label. In case of the shape option, it substitutes the normal graphical figure used to represent the element and its label denotes the name of the element.</li></ul><ul><li>“Text alignment” is an enumeration which values may be Horizontal or Vertical. When several applied stereotypes are shown, it is rendered as a list of string separated by a comma and enclosed between a pair of French guillemets. By default, this string is shown horizontally. But some times for aesthetic reasons, it may be useful to show it vertically, that is to say showing one stereotype per line.</li></ul><ul><li>“Display place” is an enumeration which values may be Compartment, Comment or With brace. This appearance property is used to set where to show the properties values of the applied stereotypes. In UML, those values can be shown either within a pair of braces located just near (above or on top) the name label of the model element (“With brace” option), or into a dedicated compartment, or in a text note associated with the annotated model element.</li></ul><p><i>PS: if you display several stereotype applications, and if you select the options to display them with icon or with icon and text, this is the icon of the first stereotype application in the list which is chosen to be displayed.</i></p></body></html> \ No newline at end of file
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Using_Profiles_and_Stereotypes">Using Profiles and Stereotypes</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Using_Profiles_and_Stereotypes">Using Profiles and Stereotypes</a><ol style="list-style: none;"><li><a href="#Applying_a_Profile">Applying a Profile</a></li><li><a href="#Applying_a_Stereotype">Applying a Stereotype</a></li><li><a href="#Setting_values_to_stereotype.27_properties">Setting values to stereotype' properties</a></li><li><a href="#Display_options_of_a_stereotype_application">Display options of a stereotype application</a></li></ol></li></ol><p>Once a profile has been designed and defined as previously explained, it now times to use it. The first step to process is to apply the profile on your model or a part of the model. This is the purpose of the next section to explain this first step. Then, we will explain how to use the applied profile and mainly how to use its extensions, i.e. its stereotypes.</p><h2 id="Applying_a_Profile">Applying a Profile</h2><p>To apply a profile, first you need to open your model.</p><p>The first step consists in selecting the part of the model you want to apply the profile on. Profiles can be applied either on Models or Packages. Then to apply the profile on this part, let’s select the profile tab in the property view, and press the <img title="Apply Profile" alt="Apply Profile" border="0" src="images/Add.gif"/> button.</p><p><img title="Select Package" alt="Select Package" border="0" src="images/applyProfile.png"/><br/></p><p><img title="Profile Tab" alt="Profile Tab" border="0" src="images/applyProfile2.png"/><br/></p><p><img title="Apply Profile" alt="Apply Profile" border="0" src="images/applyProfile3.png"/><br/></p><p>Then, Papyrus will ask you firstly to choose the profile to apply from your workspace, and secondly to choose which part of the selected profile you want to apply. It is indeed possible that your profile may be composed of sub-profiles as explained in the previous chapter. It is then possible to apply partially a profile by applying one or more of its sub-profiles.</p><p><img title="Select Profile" alt="Select Profile" border="0" src="images/selectProfileModel.png"/><br/></p><p><img title="Select Profiles" alt="Select Profiles" border="0" src="images/selectProfiles.png"/><br/></p><p>Your model should now look like this:</p><p><img title="Applied Profiles" alt="Applied Profiles" border="0" src="images/appliedProfiles.png"/><br/></p><h2 id="Applying_a_Stereotype">Applying a Stereotype</h2><p>Once the profile is applied on your model, its extensions, i.e. stereotypes, are available in the modeling tool and can be used in your model to annotate uml elements.</p><p>To annotate a model element, you first need to select it either through the model explorer or in one open diagram. Then, select the tab named “profile” in the properties view, and add your stereotype using the <img title="Apply Profile" alt="Apply Profile" border="0" src="images/Add.gif"/> button of the widget named “Applied stereotypes”</p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype2.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype3.png"/><br/></p><p>A dialog box enables you to select the stereotype(s) you want to apply (left part of the dialog box) and using the <img title="Add" alt="Add" border="0" src="images/arrow_right.gif"/> button located in the middle of the dialog box enables to define which stereotypes have to be applied. The list located on the right of the dialog box denotes the list of applied stereotype. If you want to unapply stereotypes, you can select those latter from the right list and use the <img title="Remove" alt="Remove" border="0" src="images/arrow_left.gif"/> button to unapply them.</p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype4.png"/><br/></p><p><img title="Apply Stereotype" alt="Apply Stereotype" border="0" src="images/applyStereotype5.png"/><br/></p><p>At this point, your Papyrus should look like this:</p><p><img title="Applied Stereotype" alt="Applied Stereotype" border="0" src="images/appliedStereotype.png"/><br/></p><h2 id="Setting_values_to_stereotype.27_properties">Setting values to stereotype' properties</h2><p>As already mentioned, Stereotypes may have properties. Consequently, when applying a stereotype to a model element, it may be necessary to set the values of those properties. For that, you will go to the profile tab of the properties view and then you can unfold the stereotype application as shown in following figure:</p><p><img title="Stereotype Properties" alt="Stereotype Properties" border="0" src="images/stereotypeProperties.png"/><br/></p><p>Once you have selected the property to edit, its value (if already set, as for example if there is a default value defined in the profile for the property) appear in the right part of the property view. If the property has not yet been valued, you can add a value by using the <img title="Add" alt="Add" border="0" src="images/add.gif"/> button located on the top right of the widget named “Properties values”. If there is a value, double-click on the value to edit this latter.</p><p><img title="Edit Property" alt="Edit Property" border="0" src="images/stereotypePropertyEdition.png"/><br/></p><p>Ps: If you want to delete a value set to property, let’s use the <img title="Delete" alt="Delete" border="0" src="images/Delete.gif"/> button located on the top right of the widget named “Properties values”.</p><h2 id="Display_options_of_a_stereotype_application">Display options of a stereotype application</h2><p>Stereotype applications may be graphically rendered under different forms, either textually, or using specific icons. Details to specify those icons associated to a stereotype are given in previous chapters (See <a href="/wiki/definingProfilesAndStereotypes#Stereotype_display_options" title="definingProfilesAndStereotypes#Stereotype display options">definingProfilesAndStereotypes#Stereotype display options</a>).</p><p>Let’s remind that in UML, you can apply several stereotypes on a same model element. In Papyrus, it is then possible to select the ones you want to show for each diagram. For showing or hiding a stereotype application, you have to select the tab “appearance” in the properties view. As shown in the next figure, there is one widget named “Applied stereotypes” that denotes the list of stereotypes applied on the current selected model element. On the example illustrated within this figure, you can see on the upper corner of the icon placed in front of the stereotype name “Requirement” an overlay denoting that this stereotype application is shown.</p><p><img title="Stereotype Display" alt="Stereotype Display" border="0" src="images/stereotypeDisplayOptions.png"/><br/></p><p><i>Warning: Let’s notice that the appearance tab of the property view is only visible if you select a model element from one of the open diagram. In other case, if you select the model element from the model explorer, the concept of graphical does not make sense because the information specified within this view are only related to graphical information.</i></p><p><i>Consequently, the values set to the appearance properties of model element are valid only in the context of the diagram where the element is selected. It is then possible to show a stereotype on a diagram and hide it in another diagram depending on the concerns of the view realized by the diagram.</i></p><p>To hide or show stereotype applications, you have to select them from the list of applied stereotypes available within the appearance tab and then either press the <img title="Display qualified name" alt="Display qualified name" border="0" src="images/ConsoleViewQN.gif"/> button or <img title="Display" alt="Display" border="0" src="images/change_display.gif"/>.</p><p>The former is to be used if you want to display the stereotype application with its qualified name, and the latter is to be used if you want to show it without qualified name. Using one of both depends if you may have ambiguities or not on the origin of the stereotype when as for example applying several profiles defining similar stereotypes. As for example, both profiles, MARTE and SysML, define a stereotype named «FlowPort».</p><p>In addition, there are three other widgets dedicated to configure the stereotype display options:</p><ul><li>“Stereotype display” is an enumeration which values may be Text, Icon, Text and Icon or Shape. In UML, as explained previously, a stereotype may be denoted either as a string between a pair of French guillemets (e.g., «Requirement»), or as an icon embedded in the figure or as a shape with a label. In case of the shape option, it substitutes the normal graphical figure used to represent the element and its label denotes the name of the element.</li></ul><ul><li>“Text alignment” is an enumeration which values may be Horizontal or Vertical. When several applied stereotypes are shown, it is rendered as a list of string separated by a comma and enclosed between a pair of French guillemets. By default, this string is shown horizontally. But some times for aesthetic reasons, it may be useful to show it vertically, that is to say showing one stereotype per line.</li></ul><ul><li>“Display place” is an enumeration which values may be Compartment, Comment or With brace. This appearance property is used to set where to show the properties values of the applied stereotypes. In UML, those values can be shown either within a pair of braces located just near (above or on top) the name label of the model element (“With brace” option), or into a dedicated compartment, or in a text note associated with the annotated model element.</li></ul><p><i>PS: if you display several stereotype applications, and if you select the options to display them with icon or with icon and text, this is the icon of the first stereotype application in the list which is chosen to be displayed.</i></p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.mediawiki
index 825adb60bdf..7a1f4c03ce0 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/usingProfilesAndStereotypes.mediawiki
@@ -1,8 +1,11 @@
= Using Profiles and Stereotypes =
+'''Contents'''
+__TOC__
+
Once a profile has been designed and defined as previously explained, it now times to use it. The first step to process is to apply the profile on your model or a part of the model. This is the purpose of the next section to explain this first step. Then, we will explain how to use the applied profile and mainly how to use its extensions, i.e. its stereotypes.
-= Applying a Profile =
+== Applying a Profile ==
To apply a profile, first you need to open your model.
@@ -24,7 +27,7 @@ Your model should now look like this:
[[Image:images/appliedProfiles.png|Applied Profiles]]<br>
-= Applying a Stereotype =
+== Applying a Stereotype ==
Once the profile is applied on your model, its extensions, i.e. stereotypes, are available in the modeling tool and can be used in your model to annotate uml elements.
@@ -46,7 +49,7 @@ At this point, your Papyrus should look like this:
[[Image:images/appliedStereotype.png|Applied Stereotype]]<br>
-= Setting values to stereotype' properties =
+== Setting values to stereotype' properties ==
As already mentioned, Stereotypes may have properties. Consequently, when applying a stereotype to a model element, it may be necessary to set the values of those properties. For that, you will go to the profile tab of the properties view and then you can unfold the stereotype application as shown in following figure:
@@ -58,7 +61,7 @@ Once you have selected the property to edit, its value (if already set, as for e
Ps: If you want to delete a value set to property, let’s use the [[Image:images/Delete.gif|Delete]] button located on the top right of the widget named “Properties values”.
-= Display options of a stereotype application =
+== Display options of a stereotype application ==
Stereotype applications may be graphically rendered under different forms, either textually, or using specific icons. Details to specify those icons associated to a stereotype are given in previous chapters (See [[definingProfilesAndStereotypes#Stereotype display options]]).
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile-toc.xml
index f51372d4b11..56645bfea3a 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile-toc.xml
@@ -1,4 +1,4 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/users/whatIsAUmlProfile.html" label="whatIsAUmlProfile">
<topic href="resource/users/whatIsAUmlProfile.html" label="What is a UML Profile"></topic>
-</toc>
+</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.html
index 48ce377bbd0..0f660e8f490 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.html
@@ -1 +1 @@
-<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="What_Is_A_UML_Profile">What Is A UML Profile</h1><p>The purpose of this chapter is to provide the Papyrus users all the documentation needed in order to be able to use UML profiles. It includes the information for modeling and defining a profile using the Papyrus UML profile editor, but also the information for the usage of a profile within a user application model.</p><p>The basic premise of profiles is that all domain-specific concepts are derived as extensions or refinements of existing UML concepts, called UML metaclasses. These extensions are called stereotypes. A stereotype definition must be consistent with the abstract syntax and semantics of standard UML meta-classes it extends. Consequently, a profile-based model can be created and manipulated by any tool that supports standard UML. Moreover, because the concepts underlying a profile are specializations of existing UML concepts, it is more easily learned by anyone with knowledge of UML.</p><p>A stereotype is defined either as an extension of a UML base metaclass or as a specialization of an existing stereotype. The extension relationship of UML is not an association but a kind of association directed from the stereotype to the extended metaclass. Consequently, the metadata conveyed by the associated the attributes of the stereotype are associated to the extended metaclass in a transparent manner for the metaclass itself. This allows profiles owning the stereotypes to be applied and removed dynamically without modifying the underlying models — a fundamental feature of the profile mechanism.</p><p>A stereotype may have attributes and may be associated with other stereotypes or existing UML metaclasses.</p><p>Constraints, such as OCL constraints, can also be defined in a profile. They can apply to stereotypes defined in the profile or those imported by the profile. They can also be used to further constrain elements of the UML metamodel. For instance, one could define an OCL constraint that all instances of Class in a model are active, or that all instances of Class must have at least one Operation (regardless of whether the Class is extended by a stereotype or not). However, not all constraints can be written in OCL. In that case, it is common to denote those latter in natural language. The drawback is that such constraints are no more automatically interpretable and need to be first rewritten in some language the UML tool will understand. In the context of Papyrus, it is then usual to use Java.</p></body></html> \ No newline at end of file
+<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="What_is_a_UML_Profile">What is a UML Profile</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#What_is_a_UML_Profile">What is a UML Profile</a></li></ol><p>The purpose of this chapter is to provide the Papyrus users all the documentation needed in order to be able to use UML profiles. It includes the information for modeling and defining a profile using the Papyrus UML profile editor, but also the information for the usage of a profile within a user application model.</p><p>The basic premise of profiles is that all domain-specific concepts are derived as extensions or refinements of existing UML concepts, called UML metaclasses. These extensions are called stereotypes. A stereotype definition must be consistent with the abstract syntax and semantics of standard UML meta-classes it extends. Consequently, a profile-based model can be created and manipulated by any tool that supports standard UML. Moreover, because the concepts underlying a profile are specializations of existing UML concepts, it is more easily learned by anyone with knowledge of UML.</p><p>A stereotype is defined either as an extension of a UML base metaclass or as a specialization of an existing stereotype. The extension relationship of UML is not an association but a kind of association directed from the stereotype to the extended metaclass. Consequently, the metadata conveyed by the associated the attributes of the stereotype are associated to the extended metaclass in a transparent manner for the metaclass itself. This allows profiles owning the stereotypes to be applied and removed dynamically without modifying the underlying models — a fundamental feature of the profile mechanism.</p><p>A stereotype may have attributes and may be associated with other stereotypes or existing UML metaclasses.</p><p>Constraints, such as OCL constraints, can also be defined in a profile. They can apply to stereotypes defined in the profile or those imported by the profile. They can also be used to further constrain elements of the UML metamodel. For instance, one could define an OCL constraint that all instances of Class in a model are active, or that all instances of Class must have at least one Operation (regardless of whether the Class is extended by a stereotype or not). However, not all constraints can be written in OCL. In that case, it is common to denote those latter in natural language. The drawback is that such constraints are no more automatically interpretable and need to be first rewritten in some language the UML tool will understand. In the context of Papyrus, it is then usual to use Java.</p></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.mediawiki
index 7f4c93cda50..7fea5dc28db 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/users/whatIsAUmlProfile.mediawiki
@@ -1,4 +1,7 @@
= What is a UML Profile =
+'''Contents'''
+__TOC__
+
The purpose of this chapter is to provide the Papyrus users all the documentation needed in order to be able to use UML profiles. It includes the information for modeling and defining a profile using the Papyrus UML profile editor, but also the information for the usage of a profile within a user application model.

Back to the top