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

Bug 287212

Summary: ZEST Enhancement - Zest should provide access to underlying domain model in Layout classes
Product: [Tools] GEF Reporter: Philip Mayer <eclipsetalk2>
Component: GEF-Legacy ZestAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows NT   
Whiteboard:

Description Philip Mayer CLA 2009-08-20 13:02:19 EDT
Build ID: Build id: 20090619-0625

Steps To Reproduce:
There are no public methods to retrieve the domain model elements of a node or edge from the Layout* classes. Thus, it is not possible to take advantage of the domain when creating custom layout algorithms for a particular domain.

I propose to add such methods (getModel()) to LayoutEntity and LayoutRelationship, similar to what we have in GEF.


More information:
Comment 1 Philip Mayer CLA 2009-08-20 13:19:14 EDT
Sorry for the trouble. The solution is already there; cast getGraphData() to public classes GraphNode and GraphConnection and use getData().