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

Bug 278585

Summary: GraphModelFactory doesn't create nodes with custom figures
Product: [Tools] GEF Reporter: Tiago Proenca <tproenca>
Component: GEF-Legacy ZestAssignee: Ian Bull <irbull>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: irbull
Version: 3.4   
Target Milestone: 3.6.0 (Helios) RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch for AbstractStylingModelFactory.createConnection()
none
updated patch none

Description Tiago Proenca CLA 2009-06-01 03:54:00 EDT
Created attachment 137812 [details]
Patch for AbstractStylingModelFactory.createConnection()

In the method doBuildGraph(), if the source or dest objects are null, it just creates the nodes instances, using a custom figure if available. However, if
source or dest are different from null, it calls directly
AbstractStylingModelFactory.createConnection() which doesn't verify the existence of custom figures. Basically, custom figures doesn't work when you use a IGraphContentProvider.

Attached is a patch with the fix in AbstractStylingModelFactory.createConnection() method to consider custom figures.
Comment 1 Ian Bull CLA 2010-03-15 00:59:00 EDT
Created attachment 162004 [details]
updated patch

The patch is stale. This is an updated version. I want to test this a bit more, so I will apply it for M7.
Comment 2 Anthony Hunter CLA 2010-05-03 13:10:21 EDT
We released 3.6 M7 today so moving unresolved bugs to 3.6 RC1.

We need to re-access if we can complete these for Helios.
Comment 3 Ian Bull CLA 2010-05-17 01:25:11 EDT
I've tested the patch a bit more and I'm happy with it. Released to head.