| Summary: | Style customization on backgroundStyle of FlatContainerStyleDescription has no visible effect | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Max Bureck <max.bureck> | ||||||
| Component: | Core | Assignee: | Belqassim Djafer <belqassim.djafer> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | laurent.redor, pierre-charles.david | ||||||
| Version: | 2.0.0 | Keywords: | triaged | ||||||
| Target Milestone: | 3.0.0M6 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| See Also: |
https://git.eclipse.org/r/42312 https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7339f1bd9bd29c7ac70a91b489672db555937a3c |
||||||||
| Whiteboard: | trivial | ||||||||
| Attachments: |
|
||||||||
|
Description
Max Bureck
Hi, Could you please join a minimal reproduction use case? Regards, Laurent Created attachment 250219 [details]
Example Project: Style customization of FlatContainerStyleDescription.backgroundStyle does not lead to visual update
I attached a project, with a meta model and a simple diagram. Open the .aird file, open the one existing element and select the node on the diagram. When chaning the semantic boolean property "liquid" the background of the node should change, but it doesn't. You have to close and re-open the .aird file to get the visual change. Only a close and reopen of the diagram is needed (not of all aird file) but I confirm the problem. Short analysis: The style is correctly refreshed after the change of value. The problem is at the figure level. A test is probably missing in org.eclipse.sirius.diagram.ui.edit.internal.part.DiagramContainerEditPartOperation.refreshVisuals(IDiagramContainerEditPart). I completed the initial use case with a foreground color change in the customization. Steps to reproduce: * Import the project dynamic_background in your workspace * Open TestDiagram.aird * Open the diagram "new Diagram" => the node has a gradient color from top to bottom (white to red). * Select the node, in the Properties view, tab Semantic, change the value Liquid to true => The foreground color changes from red to green: OK => The background style (top to bottom) stays the same: KO * Save the diagram and close it. * Open the diagram again => The background style has been changed: "top to bottom" to "diagonal". This background style should be obtained directly after the semantic change. Created attachment 250243 [details]
Initial use case completed
New Gerrit change created: https://git.eclipse.org/r/42312 Gerrit change https://git.eclipse.org/r/42312 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7339f1bd9bd29c7ac70a91b489672db555937a3c Fixed by 7339f1bd9bd29c7ac70a91b489672db555937a3c. Verified on Sirius 3.0.0M6 Available in Sirius 3.0.0. See https://wiki.eclipse.org/Sirius/3.0.0. |