Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325725 - wrong implementation of ILinkService#getPictogramElements()
Summary: wrong implementation of ILinkService#getPictogramElements()
Status: CLOSED FIXED
Alias: None
Product: Graphiti
Classification: Modeling
Component: Core (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 0.7.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 05:45 EDT by Matthias Gorning CLA
Modified: 2010-10-07 03:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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