Skip to main content



      Home
Home » Modeling » Graphiti » Searching For Linked PictogramElements Given An EObject
Searching For Linked PictogramElements Given An EObject [message #559695] Fri, 17 September 2010 11:30 Go to next message
Eclipse UserFriend
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 05:00 Go to previous messageGo to next message
Eclipse UserFriend
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 05:48 Go to previous message
Eclipse UserFriend
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: Thu Jul 24 16:52:41 EDT 2025

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

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

Back to the top