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

Bug 325725

Summary: wrong implementation of ILinkService#getPictogramElements()
Product: [Modeling] Graphiti Reporter: Matthias Gorning <matthias.gorning>
Component: CoreAssignee: Project Inbox <graphiti-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: michael.wenz
Version: 0.7.0   
Target Milestone: 0.7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Gorning CLA 2010-09-20 05:45:29 EDT
The implementation of method

List<PictogramElement> getPictogramElements(Diagram diagram, EObject eObject);

in the class LinkServiceImpl is wrong. It must consider all linked business objects and not only the first.

Please, add an additional loop in the search.
Comment 1 Matthias Gorning CLA 2010-09-20 06:06:02 EDT
Implementation in class LinkServiceImpl changed.

It uses getAllBusinessObjectsForLinkedPictogramElement() instead of getBusinessObjectForLinkedPictogramElement().

The automated junit tests were also extended.
Comment 2 Michael Wenz CLA 2010-10-07 03:06:01 EDT
Part of 0.7.0 release