Paste into Papyrus table not working for UML? Or I'm doing something wrong? [message #1710138] |
Mon, 05 October 2015 04:53 |
Ri Fr Messages: 134 Registered: July 2015 |
Senior Member |
|
|
Hi there
following these instructions, Papyrus 1.2.0 (I just updated)
I want to import a list of Packages into and existing package
Select the Package - new table - generic Table
Select the Table - Properties - Paste: "Not available for this Table" (contrary to what the user guide says)
Then I get a bunch of error messages from papyrus (I clicked 'Yes' on 'Submit bug report') such as 'An error has occurred. See error log for more details.
java.lang.NullPointerException'
Tried to paste anyway, nothing happens
Try again!!!
Select the Package - new table - generic Tree Table
Select the Table - Properties - now Paste view is showing
Delect 'Detach mode'
Paste element ID select 'org.eclipse.papyrus.uml.Package'
Containment feature: 'PackageableElement'
Select the table, Create/Destroy Columns', select UML 'Package', 'Name'
Go back to the table, copy the Package names from Excel table (a few cells in a column), click on Table, Edit - Paste , nothing happens. Click on the 'name' column, Edit-paste, nothing happens. Is this a bug or am I doing it wrong? Thanks!!!
p.s. "Import from file" context menu is available on Generic tables, and it only generates error messages for me - nothing else...
[Updated on: Mon, 05 October 2015 05:29] Report message to a moderator
|
|
|
|
|
Re: Paste into Papyrus table not working for UML? Or I'm doing something wrong? [message #1710211 is a reply to message #1710202] |
Mon, 05 October 2015 11:47 |
Camille Letavernier Messages: 952 Registered: February 2011 |
Senior Member |
|
|
Hi,
The paste only works if the table is configured to create a specific element for each line. Papyrus only provides (by default) 2 such configurations, for SysML Requirements (A requirement is created for each line) and SysML Allocations. For a generic table, there is no way for the tool to know that you want to create a uml::Package for each pasted line, so it won't work.
A custom table configuration is required for your use case (If I understand it correctly)
Edit: It seems that the help also covers the step for customizing the Paste in a generic table, so I may indeed have misunderstood the issue. I'll see if it works for me and post again once I can confirm whether it works or not on the current version(s).
HTH,
Camille
Camille Letavernier
[Updated on: Mon, 05 October 2015 11:49] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05798 seconds