Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 441586

Summary: Fill Label Expression with the default value "X" for the Intersection Mapping of a cross Table
Product: [Modeling] Sirius Reporter: Jessy Mallet <jessy.mallet>
Component: TableAssignee: Project Inbox <sirius.table-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: esteban.dugueperoux, laurent.redor, maxime.porhel
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: All   
OS: All   
Whiteboard:

Description Jessy Mallet CLA 2014-08-12 08:43:09 EDT
Usually users think their mapping doesn't work just because they don't write anything on label expression.

To solve this problem, a string value like "X" for example must be propose by default.
Comment 1 Maxime Porhel CLA 2014-08-18 11:06:41 EDT
Jessy if you modify the default value in the metamodel, you will have to provide a migration participant to migrate existing VSM. 


Another solution, which does not require a migration, would be to modify the creation of IntersetionMappings in org.eclipse.sirius.table.metamodel.table.description.provider.CrossTableDescriptionItemProvider.collectNewChildDescriptors(Collection<Object>, Object)
Comment 2 Maxime Porhel CLA 2014-08-18 11:34:08 EDT
See https://git.eclipse.org/r/#/c/31836/ for the change proposed by Jessy
Comment 3 Jessy Mallet CLA 2014-08-20 10:37:36 EDT
The solution suggested by Maxime Porhel is retained. The item provider is modified instead of the metamodel to avoid migration issues.

See https://git.eclipse.org/r/#/c/31836/ for the change.
Comment 5 Pierre-Charles David CLA 2014-10-27 06:52:59 EDT
Available in Sirius 2.0.0.