How to enable it
In order to make ArgoUML use eUML, check if the org.eclipse.<...>.jar files are available in the ArgoUML installation directory (should be the case since the 0.29.x releases). At startup, make sure that the parameters -Dargouml.model.implementation=org.argouml.model.euml.EUMLModelImplementation -DeUML.resources=org.eclipse.uml2.uml.resources_<version>.jar are set, which is the case in the argouml2.<bat|sh> startup scripts.
For using eUML in eclipse, use one of the available launch configurations that include "eUML" or "UML2" in their name.
TODO: Describe how things are set up, especially in org.argouml.model.euml.EUMLModelImplementation.
ArgoUML supports both modeling of UML models and UML profiles. Please note that since UML 2.x models and profiles are different things, so ArgoUML makes a distinction between a model and a profile project (as long as ArgoUML has the "one project one model" restriction). Keep this in mind when creating profiles with ArgoUML.
In UML 2.x, a profile is a separate metamodel element. Both metamodel elements "Model" and "Profile" are packages. In ArgoUML, they are top level packages. You can see this in the XMI files created by ArgoUML: a model begins with a <uml:Model ...> node, while a profile begins with a <uml:Profile ...> node (after the XMI header). Assuming that modeling of profiles is straightforward, so we continue with the concept of applying a profile to an eUML model.
Assuming that modeling of profiles is straightforward, so we continue with the concept of applying a profile to an eUML model.
TODO: Demonstrate why we MUST introduce a nonstandard XMI extension when applying a profile!
In ArgoUML, a profile is applied via the "Profile Configuration". We don't comment on this here.
Applying a profile basically means referring it in the model. In XMI, this will be done by a "href" attribute inside of a "profileApplication" subtree:
<uml:Model [...] xmi:id="<MODEL_ID>"> [...] <profileApplication xmi:type="uml:ProfileApplication" [...] applyingPackage="<MODEL_ID>"> <xmi:Extension extender="http://www.eclipse.org/emf/2002/Ecore"> <eAnnotations xmi:type="ecore:EAnnotation" [...]> <references xmi:type="ecore:EPackage" href="<REF_TO_ECORE_ELEMENT>"/> </eAnnotations> </xmi:Extension> <appliedProfile xmi:type="uml:Profile" href="<REF_TO_PROFILE_ID>"/> </profileApplication> </uml:Model>