Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Searching For Linked PictogramElements Given An EObject
Searching For Linked PictogramElements Given An EObject [message #559695] Fri, 17 September 2010 15:30 Go to next message
Rhett Hudson is currently offline Rhett Hudson
Messages: 43
Registered: September 2010
Member
The LinkService provides a method called getPictogramElements() whose contract says it will return all the PictogramElements linked to a given EObject. The implementation in LinkServiceImpl.java:147 calls getBusinessObjectForLinkedPictogramElement on each link it searches. However, this misses EObjects which are not the first object in the list. The search could include an additional loop to search the results of link.getBusinessObjects() and get all of them.

Which is the correct behavior?

Re: Searching For Linked PictogramElements Given An EObject [message #559890 is a reply to message #559695] Mon, 20 September 2010 09:00 Go to previous messageGo to next message
Matthias Gorning is currently offline Matthias Gorning
Messages: 81
Registered: April 2010
Location: Germany
Member
Hi,
you are right.

We have to change the internal implementation of

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

The search must include an additional loop to scan all available business objects.

Regards,
Matthias
Re: Searching For Linked PictogramElements Given An EObject [message #559901 is a reply to message #559890] Mon, 20 September 2010 09:48 Go to previous message
Matthias Gorning is currently offline Matthias Gorning
Messages: 81
Registered: April 2010
Location: Germany
Member
I've created a bugzilla entry:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=325725
Previous Topic:Font Size In Pixels
Next Topic:Put one shape above another using dnd
Goto Forum:
  


Current Time: Fri Oct 31 11:39:48 GMT 2014

Powered by FUDForum. Page generated in 0.05179 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software