Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshow can get all business object from diagram
https://www.eclipse.org/forums/index.php/mv/msg/517917/1101336/#msg_1101336
Now I have a problem,I just want to know whether there are apis to get business object from diagram in graphiti.I look forward for your help.
]]>xiao yu zhou2013-09-04T10:16:32-00:00Re: how can get all business object from diagram
https://www.eclipse.org/forums/index.php/mv/msg/517917/1101362/#msg_1101362
Try these methods getFeatureProvider().getBusinessObjectForPictogramElement(getDiagram());
getFeatureProvider().getAllBusinessObjectsForPictogramElement(getDiagram())
Hope this helps.
Thanks
Palani]]>PALANI SANKAR2013-09-04T11:09:16-00:00Re: how can get all business object from diagram
https://www.eclipse.org/forums/index.php/mv/msg/517917/1102922/#msg_1102922
Thank you for your advice for these methods ,but these methods did not give me a help.I can only get an empty array. I do not know why. I also tried getPictogramLinks() method on diagram,this method can help me to get all links and then get all business objs,but by this I get more than what I need. I know get the objs by filtering, but I think there should be a method provided by Graphiti to get domain model objs in an elegant way.
]]>xiao yu zhou2013-09-06T07:48:05-00:00Re: how can get all business object from diagram
https://www.eclipse.org/forums/index.php/mv/msg/517917/1104592/#msg_1104592
> Thank you for your adv
> getFeatureProvider().getBusinessObjectForPictogramElement(getDiagram()) and
> getFeatureProvider().getAllBusinessObjectsForPictogramElement(getDiagram()),but
> these methods did not give me a help.I can only get an empty array.
This code gives you the business object(s) directly related to the
diagram itself, which is a PictogramElement. Sometimes this is the root
object of your model, but not always. You must use a PictogramElement
further down the Shape containment hierarchy.
I do
> not know why. I also tried getPictogramLinks() method on diagram,this
> method can help me to get all links and then get all business objs,but
> by this I get more than what I need. I know get the objs by filtering,
> but I think there should be a method provided by Graphiti to get domain
> model objs in an elegant way.
>]]>Hallvard Traetteberg2013-09-08T16:51:16-00:00Re: how can get all business object from diagram
https://www.eclipse.org/forums/index.php/mv/msg/517917/1811331/#msg_1811331
deerein kelerin2019-08-31T09:59:17-00:00