How to import Classes and ownedAttributes with Comments [message #1860333] |
Sat, 29 July 2023 14:02  |
Eclipse User |
|
|
|
Hi all,
I need help:
I managed to successfully import classes and attributes from CSV via CLASS TREE TABLE in the given Package element (simple, excellent).
I would need the same
but Class has N Comments
and likewise Property (ownedAttribute) also has N Comments
I also need to import these Comments.
CLASS TREE TABLE can no longer do this (it has limited elements), but I could not set up and make GENERIC TREE TABLE work for importing classes and attributes even with Comments (owner of Table is parent Package).
Could someone help me?
Thanks!
|
|
|
Re: How to import Classes and ownedAttributes with Comments [message #1860411 is a reply to message #1860333] |
Thu, 03 August 2023 15:00   |
Eclipse User |
|
|
|
Hello,
I confirm that Class Tree table won't be able to manage Comment. You need to start from a Generic Tree Table defined on a Package.
You need to configure your Generic Tree Table like described here. from the table contextual menu, select "Configure Categories and Paste", to configure the categories like this:
- depth 0
- depth 1
- ownedComment
- ownedAttribute
- depth 2
Then on the next page of the wizard, you should to configure the Paste:
- packagedElement -> org.eclipse.papyrus.uml.Class - packagedElement
- ownedComment -> org.eclipse.papyrus.uml.Comment - ownedComment
- ownedAttribute -> org.eclipse.papyrus.uml.Property - ownedProperty (in the tree, select the ownedProperty under Class and not another one!)
- ownedComment -> org.eclipse.papyrus.uml.Comment - ownedComment
Then save.
On the table, display the column "name" and "body" and set the Hierarchic Style as Tree Multi Column Style.
Now you will be able to import a csv file with the Comments.
In attachment, several snapshot to help you.
HTH,
Vincent
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03037 seconds