Bug 517743 - [Table][TreeTable][Matrix] The rows must be updated on all notifications
Summary: [Table][TreeTable][Matrix] The rows must be updated on all notifications
Status: NEW
Alias: None
Product: Papyrus
Classification: Modeling
Component: Table (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard: CEA_FACE17
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-02 12:17 EDT by Vincent Lorenzo CLA
Modified: 2017-11-14 05:39 EST (History)
2 users (show)

See Also:


Attachments
model To Reproduce the first point (6.32 KB, application/octet-stream)
2017-11-07 07:39 EST, Vincent Lorenzo CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2017-06-02 12:17:00 EDT
Several usecases are included in this bug.
1. with TreeTable, we are able to configure the Tree using TreeFillingConfiguration. This object often reference an EStructuralFeature to provide the children, but there is usecase where we reference a stereotype's property or a custom feature. 
	->In this case the table rows are never updated and we need to reload the table editor. 
2. with Matrix, we can register as filter of the TreeFillingConfiguration an IExpression. This expression can work on stereotype application or on all custom property of the model. 
	->In this case the table rows are never updated and we need to reload the table editor. 
	

That's why we should add listener on the Resource or on the ResourceSet to be notified on each change and update the table. As listening and managing all these notifications will probably take a long time, 
I propose to add a boolean value somewhere in the model (probably on TreeFillingConfiguration), to allow to the user to activate this refresh.
Comment 1 Vincent Lorenzo CLA 2017-11-07 07:39:51 EST
Created attachment 271354 [details]
model To Reproduce the first point

This model allows to reproduce the first point. Adding/Remove a reference to Stereotype1::Attribute1 doesn't change the table contents
Comment 2 Vincent Lorenzo CLA 2017-11-07 08:09:26 EST
For the first usecase, I provided an example. I know this example can't not yet be created by the UI, but we can get a such model editing a table configuration or a user model in text mode. 

For the second usecase, we don't have yet expression working on a feature value, so we abandon this part for the current bug.
Comment 3 Eclipse Genie CLA 2017-11-14 05:39:50 EST
New Gerrit change created: https://git.eclipse.org/r/111520