Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Add.gifbin0 -> 345 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Extension.gifbin0 -> 102 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Generalization.gifbin0 -> 144 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Profile.gifbin0 -> 154 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/dropStereotype.pngbin0 -> 26068 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/generalizeStereotype.pngbin0 -> 57157 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/high.pngbin0 -> 950 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/highReqIcon.pngbin0 -> 62505 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconExpressions.pngbin0 -> 87308 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconKind.pngbin0 -> 24058 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconsForStereotype.pngbin0 -> 35687 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importMetaclassDialog.pngbin0 -> 39106 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importProfile.pngbin0 -> 79023 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importedMetaclass.pngbin0 -> 6718 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/low.pngbin0 -> 899 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/manyStereotypeIcons.pngbin0 -> 103027 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/medium.pngbin0 -> 882 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/metaclassExtension.pngbin0 -> 135746 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfile.pngbin0 -> 95810 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfileDiagram.pngbin0 -> 117409 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/profileEditor.pngbin0 -> 286593 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/resultProfile.pngbin0 -> 91592 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectIcon.pngbin0 -> 63542 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectProfile.pngbin0 -> 75030 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypeName.pngbin0 -> 23923 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypePalette.pngbin0 -> 43235 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/subProfiles.pngbin0 -> 138111 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile-toc.xml20
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.html4
-rw-r--r--plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.mediawiki142
30 files changed, 165 insertions, 1 deletions
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Add.gif b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Add.gif
new file mode 100644
index 00000000000..189b46e5a5b
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Add.gif
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Extension.gif b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Extension.gif
new file mode 100644
index 00000000000..d6e7b151c61
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Extension.gif
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Generalization.gif b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Generalization.gif
new file mode 100644
index 00000000000..20013dff017
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Generalization.gif
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Profile.gif b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Profile.gif
new file mode 100644
index 00000000000..18eed1f5cb9
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/Profile.gif
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/dropStereotype.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/dropStereotype.png
new file mode 100644
index 00000000000..70012cf5ce5
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/dropStereotype.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/generalizeStereotype.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/generalizeStereotype.png
new file mode 100644
index 00000000000..77e120d3e1f
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/generalizeStereotype.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/high.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/high.png
new file mode 100644
index 00000000000..a7d39585713
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/high.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/highReqIcon.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/highReqIcon.png
new file mode 100644
index 00000000000..55370b81e91
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/highReqIcon.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconExpressions.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconExpressions.png
new file mode 100644
index 00000000000..f429fc9f4ed
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconExpressions.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconKind.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconKind.png
new file mode 100644
index 00000000000..736b5e56be8
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconKind.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconsForStereotype.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconsForStereotype.png
new file mode 100644
index 00000000000..3355e9bb51e
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/iconsForStereotype.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importMetaclassDialog.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importMetaclassDialog.png
new file mode 100644
index 00000000000..09625e6124c
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importMetaclassDialog.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importProfile.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importProfile.png
new file mode 100644
index 00000000000..ab1e97f10cb
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importProfile.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importedMetaclass.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importedMetaclass.png
new file mode 100644
index 00000000000..697b7ee96f6
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/importedMetaclass.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/low.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/low.png
new file mode 100644
index 00000000000..15ee9623ec9
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/low.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/manyStereotypeIcons.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/manyStereotypeIcons.png
new file mode 100644
index 00000000000..5afca3ea525
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/manyStereotypeIcons.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/medium.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/medium.png
new file mode 100644
index 00000000000..e3f659a4b78
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/medium.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/metaclassExtension.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/metaclassExtension.png
new file mode 100644
index 00000000000..c679ac1b567
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/metaclassExtension.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfile.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfile.png
new file mode 100644
index 00000000000..8879751e3e5
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfile.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfileDiagram.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfileDiagram.png
new file mode 100644
index 00000000000..34f85df68ee
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/newProfileDiagram.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/profileEditor.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/profileEditor.png
new file mode 100644
index 00000000000..42463d165f3
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/profileEditor.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/resultProfile.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/resultProfile.png
new file mode 100644
index 00000000000..e461d9f44a5
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/resultProfile.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectIcon.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectIcon.png
new file mode 100644
index 00000000000..91c1788d200
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectIcon.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectProfile.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectProfile.png
new file mode 100644
index 00000000000..a7eec65915a
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/selectProfile.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypeName.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypeName.png
new file mode 100644
index 00000000000..9ca2c8e2e53
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypeName.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypePalette.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypePalette.png
new file mode 100644
index 00000000000..1cd40673b15
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/stereotypePalette.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/subProfiles.png b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/subProfiles.png
new file mode 100644
index 00000000000..3314c05543b
--- /dev/null
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/images/subProfiles.png
Binary files differ
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile-toc.xml b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile-toc.xml
index 7cd64928cd7..e46a2c21144 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile-toc.xml
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile-toc.xml
@@ -1,4 +1,24 @@
<?xml version='1.0' encoding='utf-8' ?>
<toc topic="resource/profile.html" label="profile">
<topic href="resource/profile.html" label="Introduction"></topic>
+ <topic href="resource/profile.html#Profile_Creation_and_Modeling" label="Profile Creation and Modeling">
+ <topic href="resource/profile.html#Profile_Creation" label="Profile Creation"></topic>
+ <topic href="resource/profile.html#Stereotype_Definition" label="Stereotype Definition">
+ <topic href="resource/profile.html#Stereotype_Creation" label="Stereotype Creation"></topic>
+ <topic href="resource/profile.html#Metaclass_Import" label="Metaclass Import"></topic>
+ <topic href="resource/profile.html#Extension_Creation" label="Extension Creation"></topic>
+ <topic href="resource/profile.html#Subprofile_Creation" label="Subprofile Creation"></topic>
+ <topic href="resource/profile.html#Stereotype_Generalization" label="Stereotype Generalization"></topic>
+ </topic>
+ <topic href="resource/profile.html#Stereotype_display_options" label="Stereotype display options"></topic>
+ </topic>
+ <topic href="resource/profile.html#Profile_Definition_and_Export" label="Profile Definition and Export"></topic>
+ <topic href="resource/profile.html#Profile_Application_and_Usage" label="Profile Application and Usage">
+ <topic href="resource/profile.html#Applying_a_Profile" label="Applying a Profile"></topic>
+ <topic href="resource/profile.html#Using_the_Stereotypes_of_a_Profile" label="Using the Stereotypes of a Profile">
+ <topic href="resource/profile.html#Applying_a_Stereotype" label="Applying a Stereotype"></topic>
+ <topic href="resource/profile.html#Assigning_values_to_properties_of_stereotypes" label="Assigning values to properties of stereotypes"></topic>
+ <topic href="resource/profile.html#Display_options_of_a_stereotype_application" label="Display options of a stereotype application"></topic>
+ </topic>
+ </topic>
</toc> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.html b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.html
index d849d464001..d9348364772 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.html
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.html
@@ -1 +1,3 @@
-<?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="Introduction">Introduction</h1></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="Introduction">Introduction</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 syntax2 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 (3), 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><h1 id="Profile_Creation_and_Modeling">Profile Creation and Modeling</h1><h2 id="Profile_Creation">Profile Creation</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><h2 id="Stereotype_Definition">Stereotype Definition</h2><p>Once a profile has been 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="Stereotype_Creation">Stereotype Creation</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="Metaclass_Import">Metaclass Import</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="Extension_Creation">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><h3 id="Subprofile_Creation">Subprofile Creation</h3><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><h3 id="Stereotype_Generalization">Stereotype Generalization</h3><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="Stereotype_display_options">Stereotype display 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><h1 id="Profile_Definition_and_Export">Profile Definition and Export</h1><p>Once a profile has been modeled, we need to define it before being able to apply it on user models. The definition of a profile consists in:</p><p><i>“When defining a dynamic profile representation, the contents of a profile are converted to an equivalent Ecore format that is stored as an annotation on the profile. Then, when a profile and its stereotypes are applied to a model and its elements, dynamic EMF (see the EMF book for details) is used to store property values for the stereotypes. For the most part, you can ignore this complexity, as long as you remember to define your profile before using it.”</i></p><p>(This definition has been extracted from <a href="/wiki/http://wiki.eclipse.org/MDT/UML2/Introduction_to_UML2_Profiles" title="http://wiki.eclipse.org/MDT/UML2/Introduction_to_UML2_Profiles">http://wiki.eclipse.org/MDT/UML2/Introduction_to_UML2_Profiles</a>)</p><p><i>PS: The implementation of profile support in the UML2 component of MDT supports defining both dynamic and static profile representations. In this the document, we will focus on dynamic profiles.</i></p><p>To define a profile within Papyrus, you just need to save it doing as for example following actions: either through the menu bar action File &gt; Save or using the key shortcut “CTRL S”.
+Let’s notice, that it is not mandatory to define a profile each time you save it. If you do not want to define your profile when saving it, just answer no to the related question asked by Papyrus when saving profile modifications. However, if you want to apply the modifications you have done on a given profile, this you have to define it again in order the modifications may be taken into account at the user model level.</p><p><img title="Profile Definition" alt="Profile Definition" border="0" src="images/profileDefinition1.png"/><br/></p><p><img title="Profile Definition" alt="Profile Definition" border="0" src="images/profileDefinition2.png"/><br/></p><p>Note: If the profile contains errors (Such as an untyped Property or unnamed Stereotype), you won't be able to define it. However, it can still be saved. In such a case, a Diagnostic dialog displays all the validation errors preventing the profile from being defined.</p><p><img title="Profile Definition Errors" alt="Profile Definition Errors" border="0" src="images/profileDefinitionErrors.png"/><br/></p><h1 id="Profile_Application_and_Usage">Profile Application and Usage</h1><h2 id="Applying_a_Profile">Applying a Profile</h2><h2 id="Using_the_Stereotypes_of_a_Profile">Using the Stereotypes of a Profile</h2><h3 id="Applying_a_Stereotype">Applying a Stereotype</h3><h3 id="Assigning_values_to_properties_of_stereotypes">Assigning values to properties of stereotypes</h3><h3 id="Display_options_of_a_stereotype_application">Display options of a stereotype application</h3></body></html> \ No newline at end of file
diff --git a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.mediawiki b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.mediawiki
index aad945f6bae..24617cdefd4 100644
--- a/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.mediawiki
+++ b/plugins/doc/org.eclipse.papyrus.uml.diagram.profile.doc/resource/profile.mediawiki
@@ -1,2 +1,144 @@
= Introduction =
+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.
+
+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 syntax2 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.
+
+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.
+
+A stereotype may have attributes and may be associated with other stereotypes or existing UML metaclasses.
+
+Constraints, such as OCL constraints (3), 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.
+
+= Profile Creation and Modeling =
+
+== Profile Creation ==
+
+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":
+
+[[Image:images/newProfile.png|New Profile]]<br>
+
+[[Image:images/newProfileDiagram.png|New Profile Diagram]]<br>
+
+[[Image:images/profileEditor.png|Profile Editor]]<br>
+
+== Stereotype Definition ==
+
+Once a profile has been 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.
+
+=== Stereotype Creation ===
+
+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.
+
+[[Image:images/stereotypePalette.png|Stereotype Palette]]<br>
+
+[[Image:images/stereotypeName.png|Stereotype Name]]<br>
+
+=== Metaclass Import ===
+
+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.
+
+[[Image:images/importMetaclassDialog.png|Import Metaclass]]<br>
+
+[[Image:images/importedMetaclass.png|Imported Metaclass]]<br>
+
+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.
+
+=== 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>
+
+=== Subprofile Creation ===
+
+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.
+
+To create a sub profile, select the profile tool in the profile diagram palette ([[Image:images/Profile.gif|Profile]]) and then click on the profile diagram where you want to create your new profile.
+
+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:
+
+[[Image:images/subProfiles.png|Sub Profiles]]<br>
+
+=== Stereotype Generalization ===
+
+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.
+
+To create a stereotype generalization using the profile diagram editor, let’s draw a generalization relationship using the tool [[Image:images/Generalization.gif|Generalization]] 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.
+
+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.
+
+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:
+
+[[Image:images/importProfile.png|Import Profile]]<br>
+
+[[Image:images/selectProfile.png|Select Profile]]<br>
+
+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:
+
+[[Image:images/dropStereotype.png|Drop Stereotype]]<br>
+
+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).
+
+[[Image:images/generalizeStereotype.png|Generalize Stereotype]]<br>
+
+At this point, your diagram should look like something like the one shown here:
+
+[[Image:images/resultProfile.png|Result Profile]]<br>
+
+== Stereotype display 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.
+
+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 [[Image:images/Add.gif|Add]] 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 [[Image:images/Add.gif|Add]] 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.
+
+[[Image:images/iconsForStereotype.png|Step 1: Icons for Stereotypes]]<br>
+
+[[Image:images/selectIcon.png|Step 2: Select Icon]]<br>
+
+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 [[Image:images/high.png|High]], [[Image:images/medium.png|Medium]], and [[Image:images/low.png|Low]], to the stereotype «Requirement» and their related expression will be respectively importance=High (e.g. figure shown below), importance=Medium and importance=Low.
+
+[[Image:images/manyStereotypeIcons.png|Many Stereotype Icons]]<br>
+
+[[Image:images/iconKind.png|Icon Kind]]<br>
+
+[[Image:images/iconExpressions.png|Icon Expressions]]<br>
+
+[[Image:images/highReqIcon.png|High Req. Icon]]<br>
+
+= Profile Definition and Export =
+
+Once a profile has been modeled, we need to define it before being able to apply it on user models. The definition of a profile consists in:
+
+''“When defining a dynamic profile representation, the contents of a profile are converted to an equivalent Ecore format that is stored as an annotation on the profile. Then, when a profile and its stereotypes are applied to a model and its elements, dynamic EMF (see the EMF book for details) is used to store property values for the stereotypes. For the most part, you can ignore this complexity, as long as you remember to define your profile before using it.”''
+
+(This definition has been extracted from [[http://wiki.eclipse.org/MDT/UML2/Introduction_to_UML2_Profiles]])
+
+''PS: The implementation of profile support in the UML2 component of MDT supports defining both dynamic and static profile representations. In this the document, we will focus on dynamic profiles.''
+
+To define a profile within Papyrus, you just need to save it doing as for example following actions: either through the menu bar action File > Save or using the key shortcut “CTRL S”.
+Let’s notice, that it is not mandatory to define a profile each time you save it. If you do not want to define your profile when saving it, just answer no to the related question asked by Papyrus when saving profile modifications. However, if you want to apply the modifications you have done on a given profile, this you have to define it again in order the modifications may be taken into account at the user model level.
+
+[[Image:images/profileDefinition1.png|Profile Definition]]<br>
+
+[[Image:images/profileDefinition2.png|Profile Definition]]<br>
+
+Note: If the profile contains errors (Such as an untyped Property or unnamed Stereotype), you won't be able to define it. However, it can still be saved. In such a case, a Diagnostic dialog displays all the validation errors preventing the profile from being defined.
+
+[[Image:images/profileDefinitionErrors.png|Profile Definition Errors]]<br>
+
+= Profile Application and Usage =
+
+== Applying a Profile ==
+
+== Using the Stereotypes of a Profile ==
+
+=== Applying a Stereotype ===
+
+=== Assigning values to properties of stereotypes ===
+
+=== Display options of a stereotype application ===
+
+
+

Back to the top