| Summary: | Bad LabelProvider definition for DLine element | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Goulwen Le Fur <goulwen.lefur> | ||||
| Component: | Table | Assignee: | Belqassim Djafer <belqassim.djafer> | ||||
| Status: | CLOSED FIXED | QA Contact: | Pierre-Charles David <pierre-charles.david> | ||||
| Severity: | normal | ||||||
| Priority: | P1 | CC: | belqassim.djafer, cedric.brun, laurent.redor, pierre-charles.david, steve.monnier | ||||
| Version: | 0.9 | Keywords: | triaged | ||||
| Target Milestone: | 3.0.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| See Also: |
https://git.eclipse.org/r/47871 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=cea378bd5d97851d3decfff5250841c00e601db3 |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Goulwen Le Fur
BTW a pending ticket[1] which is about having Sirius operate in headless mode has an attached changeset which remove this labelprovider alltogether https://git.eclipse.org/r/#/c/30652/ It would not fix your issue as the "toString" behavior is still here, nevertheless I though better to mention it as both patch are likely to collide in some way. [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=441554 Currently working on it Proposed fix : https://git.eclipse.org/r/#/c/40439/ Created attachment 250439 [details]
BadLabelProvider
To reproduce :
1- Import the Bug_443675, Bug_443675.edit and Bug_443675.editor projects in the workspace.
2- Delete itemProviderAdapterFactories extension in Bug_443675.edit and launch a runtime.
3- Import Bug_443675.design in the workspace (runtime environment).
4- Open "new Table" representation -> KO : bad label on all lines and no label on columns.
Proposed fix : https://git.eclipse.org/r/#/c/40439/ Fixed by 834450f0ea852703d67a03ea24893101f57519a4. Verified on Sirius 3.0.0M6 Since the commit 834450f0ea852703d67a03ea24893101f57519a4 there is abusive dirty. At each table opening, the editor is dirty, even if there is no change. The problem is in org.eclipse.sirius.table.business.internal.refresh.DTableElementSynchronizerSpec.setLabelWithFeatureValue(DCell, ColumnMapping, String). Since this commit, this method return false if the featureObject is null. It was not the case before. New Gerrit change created: https://git.eclipse.org/r/47871 Gerrit change https://git.eclipse.org/r/47871 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=cea378bd5d97851d3decfff5250841c00e601db3 Pb detected (comment 8) has been fixed with above commit (comment 10). Verified on Sirius 3.0.0rc1a. Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |