Customize a Papyrus Nattable [message #1489718] |
Thu, 27 November 2014 11:17  |
Eclipse User |
|
|
|
Hello all,
I'm trying to add a custom Nattable editor to the Papyrus Model Explorer.
I've followed the examples already available in the current version of Papyrus (for example the RequirementTable), as i haven't found much documentation elsewhere.
Mi aim is to create a table which allows the user to add UML Comments, with a custom stereotype ,and to display the properties of the stereotype in the rows of the table. (similar to the aforementioned RequirementTable)
Up to now, i've managed to create the table and to create comments from the contextual menu, but i can't apply the stereotype automatically, so the new comment is not shown in the table unless i apply the stereotype by hand.
if anyone could give me any support on this issue it would be much appreciated.
To reproduce the issue, I'm attaching the plugin under development (and the custom profile) and a papyrus model i use for testing. I'm developing on Eclipse 4.4, with Papyrus 1.0.1 in Win64 environment and Java1.7
bye,
Nicholas
|
|
|
|
|
Re: Customize a Papyrus Nattable [message #1494218 is a reply to message #1490650] |
Mon, 01 December 2014 04:22  |
Eclipse User |
|
|
|
Hello Vincent and everyone,
i've tried your first suggestion, but i'm afraid i'm missing something else:
i've changed my Axis Manager to accept all comments so that when creating a new comment, it is visualized correctly in the table.
However, i'm not sure how i can apply the stereotype when editing a cell, in fact i can't even edit a cell!
Have you got any further suggestion?
Thanks a lot,
Nicholas
EDIT: it is not true that i can't edit a cell. The stereotype i'd like to apply has several properties typed with MARTE data types, such as NFP_Duration.
The cells corresoponding to those proerties are not editable. Others (typed as String, for instance) are editable.
[Updated on: Wed, 03 December 2014 10:40] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04995 seconds