|
|
| Re: how can get all business object from diagram [message #1102922 is a reply to message #1101362] |
Fri, 06 September 2013 03:48   |
xiao yu zhou Messages: 13 Registered: August 2013 |
Junior Member |
|
|
Hi,PALANI SANKAR
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.
[Updated on: Fri, 06 September 2013 03:51] Report message to a moderator
|
|
|
| Re: how can get all business object from diagram [message #1104592 is a reply to message #1102922] |
Sun, 08 September 2013 12:51  |
Hallvard Traetteberg Messages: 557 Registered: July 2009 Location: Trondheim, Norway |
Senior Member |
|
|
On 06.09.13 09.48, xiao yu zhou wrote:
> 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.
>
|
|
|
Powered by
FUDForum. Page generated in 0.01564 seconds