Bug 497082 - Diagrams container rendering issues while moving
Summary: Diagrams container rendering issues while moving
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 4.0.0   Edit
Hardware: PC Windows All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2016-06-30 07:36 EDT by Axel RICHARD CLA
Modified: 2016-09-08 08:57 EDT (History)
2 users (show)

See Also:


Attachments
Sirius-Rendering.png (32.69 KB, image/png)
2016-06-30 07:36 EDT, Axel RICHARD CLA
no flags Details
Drap feedback under Linux/GTK2 (2.85 KB, image/png)
2016-06-30 08:52 EDT, Pierre-Charles David CLA
no flags Details
Drap feedback under Linux/GTK3 (2.97 KB, image/png)
2016-06-30 08:53 EDT, Pierre-Charles David CLA
no flags Details
VSP (7.79 KB, application/x-zip)
2016-06-30 10:20 EDT, Laurent Fasani CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Axel RICHARD CLA 2016-06-30 07:36:38 EDT
Created attachment 262828 [details]
Sirius-Rendering.png

With Eclipse Neon and sirius 4.0.0, when a container mapping with gradient color is moved on a diagram, it causes rendering issues.

The problem appears under Windows but not under macOS.

See image attached.
Comment 1 Pierre-Charles David CLA 2016-06-30 08:52:55 EDT
Created attachment 262829 [details]
Drap feedback under Linux/GTK2
Comment 2 Pierre-Charles David CLA 2016-06-30 08:53:14 EDT
Created attachment 262830 [details]
Drap feedback under Linux/GTK3
Comment 3 Pierre-Charles David CLA 2016-06-30 08:53:53 EDT
Can't reproduce under Linux, with either GTK2 or GTK3 (see attached screenshots). This seems specific to Windows.
Comment 4 Laurent Fasani CLA 2016-06-30 10:20:55 EDT
Created attachment 262832 [details]
VSP
Comment 5 Laurent Fasani CLA 2016-06-30 10:21:40 EDT
Steps to reproduce:
* import the attached VSP into your workspace
* create a new modeling project with an ecore containing a EPackage with an EClass
* create a diagram and move the EClass container -> bad feedback
Comment 6 Pierre-Charles David CLA 2016-09-08 08:57:02 EDT
Some pointers for if/when we tackle this one:
* The actual figure used seems to be created by org.eclipse.draw2d.FigureUtilities.makeGhostShape(Shape).
* Unfortunately this is a static method whose invocation is hard-coded. At first glance it looks like we would need to override methods in many figures to replace it it with something else (which is still to be determined).