Community
Participate
Working Groups
Build Identifier: 20100917-0705 AbstractEditPartViewer is supposed to be base for various editors, including those not based on draw2d. A few methods of AbstractEditPartViewer are taking arguments of org.eclipse.draw2d.geometry.Point which creates a dependency on draw2d plugin. If AbstractEditPartViewer is there to indeed let people implement their custom viewers this dependency should be eliminated. For example using swt point instead of draw2d point. Reproducible: Always Steps to Reproduce: Just look into AbstractEditPartViewer class.
That is something we cannot change in the 3.x development stream to to API restrictions. However, in the GEF 4.0 branch we could remove those dependencies by porting GEF (MVC) to use the new Geometry API (developed in terms of bug #355997), which is independent from Draw2d.
Changed title to indicate this is a GEF4 topic. When porting to the new Geometry API, AbstractEditPartViewer should indeed not retain any dependencies on Draw2d.
Within the newly provided GEF4 MVC component the transferred IVisualViewer is solely dependent on our own GEF4 Geometry API and does not have any Draw2d dependencies. As such, the problem is being resolved there. For GEF 3.x, resolving this as wont fix, as it implies an incompatible API change.