|
Hi Dominik, Concerning the display of the documentation on an element by method 'getDocumentation', I must add that this method can only be used with raw text documentation (and not HTML Documentation for now). Do you define Documentation on Properties via HTML editor inside Topcased Documentation view? Properties and Parameters are not in the Documentation of the Operation, unless you explicitly fill the Documentation associated to the Operation with these specific elements. For the second question on how to get Parameters for Operations, there is an eAttribute 'ownedParameter' on an Operation, that allows you to get the list of parameters of the operation. 1/ You can find all available eAttributes and eOperations on UML model elements in UML ecore model : One of the ways to obtain the uml ecore model file : from Eclipse 'Package Explorer' view, Right click -> import->Plug-in -> Import from the active target platform, Import as projects with source folder -> org.eclipse.uml2.uml -> Finish In 'Models' folder, you can find the different .ecore files. 2/ Another way is to use the M2T Acceleo editor inside in such cases. The editor provides auto-completion with available operations and attributes on your model elements. The reason why Enumerations are seen as DataTypes is because Enumeration extends DataType, so you must check inside DataTypes which ones are Enumerations (using method "oclIsKindOf" for example). But that is something you can see now inside UML metamodel. Regards, Anne [email protected] a écrit :
--
|
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

